diff options
Diffstat (limited to 'src/libstddjb/fd_send.c')
-rw-r--r-- | src/libstddjb/fd_send.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/fd_send.c b/src/libstddjb/fd_send.c index cdc3dd2..1d37bd5 100644 --- a/src/libstddjb/fd_send.c +++ b/src/libstddjb/fd_send.c @@ -5,9 +5,9 @@ #include <errno.h> #include <skalibs/allreadwrite.h> -int fd_send (int fd, char const *buf, unsigned int len, unsigned int flags) +ssize_t fd_send (int fd, char const *buf, size_t len, unsigned int flags) { - register int r ; + register ssize_t r ; do r = send(fd, buf, len, (int)flags) ; while ((r == -1) && (errno == EINTR)) ; return r ; |