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