changeset 12361:9593c7cdb466

unistd.in.h: correct declaration of pread * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char* Reported by Richard W.M. Jones.
author Jim Meyering <meyering@redhat.com>
date Wed, 25 Nov 2009 17:06:25 +0100
parents 605ac802250f
children 7d728682ee08
files ChangeLog lib/unistd.in.h
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-11-25  Jim Meyering  <meyering@redhat.com>
 
+	unistd.in.h: correct declaration of pread
+	* lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
+	Reported by Richard W.M. Jones.
+
 	test-pread.sh: distribute the test script
 	* modules/pread-tests (Files): Include test-pread.sh.
 
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -673,7 +673,7 @@
    set errno and return -1.  0 indicates EOF.  See the POSIX:2001
    specification <http://www.opengroup.org/susv3xsh/pread.html>.  */
 # if !@HAVE_PREAD@ || @REPLACE_PREAD@
-  extern ssize_t pread (int fd, char *buf, size_t bufsize, off_t offset);
+  extern ssize_t pread (int fd, void *buf, size_t bufsize, off_t offset);
 # endif
 #elif defined GNULIB_POSIXCHECK
 # undef pread