From a7334dddd491692d6924d4d9c27b7bbbbc7f539f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 29 Jun 2005 00:37:19 +0000 Subject: cast buf as void* to fix warning --- libc/sysdeps/linux/common/pread_write.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/pread_write.c') 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) -- cgit v1.2.3