]> granicus.if.org Git - file/commitdiff
fix wrong type, from joerg jenderek
authorChristos Zoulas <christos@zoulas.com>
Tue, 2 Apr 2013 16:23:07 +0000 (16:23 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 2 Apr 2013 16:23:07 +0000 (16:23 +0000)
src/pread.c

index 94eca15d113d7844267414669b7e7b42585d5f0e..b9a448fb478f90cfe8718e0b6af745fcfe710b37 100644 (file)
@@ -1,12 +1,12 @@
 #include "file.h"
 #ifndef lint
-FILE_RCSID("@(#)$File: ctime_r.c,v 1.1 2012/05/15 17:14:36 christos Exp $")
+FILE_RCSID("@(#)$File: pread.c,v 1.1 2013/02/18 15:40:59 christos Exp $")
 #endif  /* lint */
 #include <fcntl.h>
 #include <unistd.h>
 
 ssize_t
-pread(int fd, void *buf, ssize_t len, off_t off) {
+pread(int fd, void *buf, size_t len, off_t off) {
        if (lseek(fd, off, SEEK_SET) == (off_t)-1)
                return -1;