diff options
Diffstat (limited to 'src/libstddjb/fd_read.c')
-rw-r--r-- | src/libstddjb/fd_read.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstddjb/fd_read.c b/src/libstddjb/fd_read.c index 9664024..43453b8 100644 --- a/src/libstddjb/fd_read.c +++ b/src/libstddjb/fd_read.c @@ -1,13 +1,12 @@ /* ISC license. */ -#include <sys/types.h> #include <unistd.h> #include <errno.h> #include <skalibs/allreadwrite.h> ssize_t fd_read (int fd, char *buf, size_t len) { - register ssize_t r ; + ssize_t r ; do r = read(fd, buf, len) ; while ((r == -1) && (errno == EINTR)) ; return r ; |