unistd.in.h: correct declaration of pread
authorJim Meyering <meyering@redhat.com>
Wed, 25 Nov 2009 16:06:25 +0000 (17:06 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 25 Nov 2009 16:06:25 +0000 (17:06 +0100)
* lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
Reported by Richard W.M. Jones.

ChangeLog
lib/unistd.in.h

index 63af1d7..6128785 100644 (file)
--- 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.
 
index 13d1bba..ba178e5 100644 (file)
@@ -673,7 +673,7 @@ extern int pipe2 (int fd[2], int flags);
    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