summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-09-30 22:19:55 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-09-30 22:19:55 +0000
commit4971b827da65526bbe3e6a2ee2d9ba182f056ac5 (patch)
tree0ad26b39a2ed2fd8eb3122936f21e01180510916
parent420557e8981347368427849ff89ecd3fe537dafa (diff)
downloadqemu-4971b827da65526bbe3e6a2ee2d9ba182f056ac5.zip
pointer arith fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1086 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--oss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/oss.c b/oss.c
index de655ce9b3..40c9462cf3 100644
--- a/oss.c
+++ b/oss.c
@@ -403,7 +403,7 @@ void AUD_run (void)
left = oss.bufsize - oss.rpos;
play = MIN (left, bytes);
- written = write (oss.fd, (void *) ((uint32_t) oss.buf + oss.rpos), play);
+ written = write (oss.fd, (uint8_t *)oss.buf + oss.rpos, play);
if (-1 == written) {
if (EAGAIN == errno || EINTR == errno) {