summaryrefslogtreecommitdiff
path: root/sysdeps/unix/getdents.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/getdents.c')
-rw-r--r--sysdeps/unix/getdents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/getdents.c b/sysdeps/unix/getdents.c
index e356e96d71..54839af0db 100644
--- a/sysdeps/unix/getdents.c
+++ b/sysdeps/unix/getdents.c
@@ -20,7 +20,7 @@
#include <sys/types.h>
#include <unistd.h>
-int
+ssize_t
__getdirentries (fd, buf, nbytes, basep)
int fd;
char *buf;
@@ -30,7 +30,7 @@ __getdirentries (fd, buf, nbytes, basep)
if (basep)
*basep = __lseek (fd, (off_t) 0, SEEK_CUR);
- return __read (fd, buf, nbytes);
+ return (ssize_t) __read (fd, buf, nbytes);
}
weak_alias (__getdirentries, getdirentries)