[uClibc-cvs] svn commit: trunk/uClibc/libc/sysdeps/linux/common
vapier at uclibc.org
vapier at uclibc.org
Wed Jun 29 00:37:20 UTC 2005
Author: vapier
Date: 2005-06-28 18:37:19 -0600 (Tue, 28 Jun 2005)
New Revision: 10615
Log:
cast buf as void* to fix warning
Modified:
trunk/uClibc/libc/sysdeps/linux/common/pread_write.c
Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/pread_write.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/pread_write.c 2005-06-29 00:33:06 UTC (rev 10614)
+++ trunk/uClibc/libc/sysdeps/linux/common/pread_write.c 2005-06-29 00:37:19 UTC (rev 10615)
@@ -186,7 +186,9 @@
#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)
More information about the uClibc-cvs
mailing list