From: Jim Meyering Date: Wed, 25 Nov 2009 16:06:25 +0000 (+0100) Subject: unistd.in.h: correct declaration of pread X-Git-Tag: v0.1~5126 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=8def010e77c2bace5391a1cda45e158d9e0a3f7d;p=gnulib.git 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 index 63af1d74c..6128785ab 100644 --- 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 index 13d1bbac9..ba178e508 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -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 . */ # 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