# HG changeset patch # User Jim Meyering # Date 1259165185 -3600 # Node ID 9593c7cdb46661fedb097cfd745ed5447d46c699 # Parent 605ac802250fb46cb648026b8b2ca6d0b88468b2 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. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-11-25 Jim Meyering + 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. diff --git a/lib/unistd.in.h b/lib/unistd.in.h --- 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 . */ # 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