diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2024-06-21 11:49:03 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2024-06-21 11:49:03 +0000 |
commit | 1640b8835a1f25d41e9768eacbeae295604b3144 (patch) | |
tree | ee8626777feb84bf8b0503040c7c23a90d322dd0 /src/libstddjb/siovec_gather.c | |
parent | 1d941a9afc51fce47c4b2b673184eceb539a80bc (diff) | |
download | skalibs-1640b8835a1f25d41e9768eacbeae295604b3144.tar.xz |
bugfix: unixmessage_put, fd bits initialization
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libstddjb/siovec_gather.c')
-rw-r--r-- | src/libstddjb/siovec_gather.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/siovec_gather.c b/src/libstddjb/siovec_gather.c index 4288141..aa73677 100644 --- a/src/libstddjb/siovec_gather.c +++ b/src/libstddjb/siovec_gather.c @@ -2,13 +2,13 @@ #include <sys/uio.h> #include <string.h> + #include <skalibs/siovec.h> size_t siovec_gather (struct iovec const *v, unsigned int n, char *s, size_t max) { size_t w = 0 ; - unsigned int i = 0 ; - for (; i < n && w < max ; i++) + for (unsigned int i = 0 ; i < n && w < max ; i++) { size_t len = v[i].iov_len ; if (len > max - w) len = max - w ; |