summaryrefslogtreecommitdiff
path: root/src/libstddjb/allread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/allread.c')
-rw-r--r--src/libstddjb/allread.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstddjb/allread.c b/src/libstddjb/allread.c
index 9f3d3bc..a33b650 100644
--- a/src/libstddjb/allread.c
+++ b/src/libstddjb/allread.c
@@ -1,8 +1,9 @@
/* ISC license. */
+#include <sys/types.h>
#include <skalibs/allreadwrite.h>
-unsigned int allread (int fd, char *buf, unsigned int len)
+size_t allread (int fd, char *buf, size_t len)
{
- return allreadwrite(&fd_read, fd, buf, len) ;
+ return allreadwrite(&fd_readv, fd, buf, len) ;
}