summaryrefslogtreecommitdiff
path: root/src/libstddjb/fd_readv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/fd_readv.c')
-rw-r--r--src/libstddjb/fd_readv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/fd_readv.c b/src/libstddjb/fd_readv.c
index c97d7ab..11dda66 100644
--- a/src/libstddjb/fd_readv.c
+++ b/src/libstddjb/fd_readv.c
@@ -5,9 +5,9 @@
#include <errno.h>
#include <skalibs/allreadwrite.h>
-int fd_readv (int fd, struct iovec const *v, unsigned int vlen)
+ssize_t fd_readv (int fd, struct iovec const *v, unsigned int vlen)
{
- register int r ;
+ ssize_t r ;
do r = readv(fd, v, vlen) ;
while ((r == -1) && (errno == EINTR)) ;
return r ;