diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-06-29 00:37:19 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-06-29 00:37:19 +0000 |
commit | a7334dddd491692d6924d4d9c27b7bbbbc7f539f (patch) | |
tree | 258b0e83679e3ab76ab46d13240d94145abf5ec9 /libc | |
parent | a6c1b25ea1445b3ba086d5bed74672d261ef1dc4 (diff) |
cast buf as void* to fix warning
Diffstat (limited to 'libc')
-rw-r--r-- | libc/sysdeps/linux/common/pread_write.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/pread_write.c b/libc/sysdeps/linux/common/pread_write.c index bf04be41f..05eff4bc9 100644 --- a/libc/sysdeps/linux/common/pread_write.c +++ b/libc/sysdeps/linux/common/pread_write.c @@ -186,7 +186,9 @@ weak_alias (__libc_pread64, pread64) #ifndef __NR_pwrite ssize_t __libc_pwrite(int fd, const void *buf, size_t count, off_t offset) { - return(__fake_pread_write(fd, buf, count, offset, 1)); + /* we won't actually be modifying the buffer, + *just cast it to get rid of warnings */ + return(__fake_pread_write(fd, (void*)buf, count, offset, 1)); } weak_alias (__libc_pwrite, pwrite) |