diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-02-17 22:30:53 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-02-17 22:30:53 +0000 |
commit | fdffefb8032922ce7ffe4c00816072a8ff2148fc (patch) | |
tree | bc7313151a429c45d8bab8ad8b9dd32f4e51335f /src/libunixonacid/unixmessage_sender_free.c | |
parent | a896ca2a8c617e5e00ffd5fc9e69331ad754e5b3 (diff) | |
download | skalibs-fdffefb8032922ce7ffe4c00816072a8ff2148fc.tar.xz |
More types changes
New disize
Add size_t to the autotypes list
Delete redundant and replace-libc files
dev_t/ino_t pass
Big size_t pass
More things missing, still not operational yet
Diffstat (limited to 'src/libunixonacid/unixmessage_sender_free.c')
-rw-r--r-- | src/libunixonacid/unixmessage_sender_free.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libunixonacid/unixmessage_sender_free.c b/src/libunixonacid/unixmessage_sender_free.c index a976827..da127c2 100644 --- a/src/libunixonacid/unixmessage_sender_free.c +++ b/src/libunixonacid/unixmessage_sender_free.c @@ -1,7 +1,8 @@ /* ISC license. */ #include <skalibs/sysdeps.h> -#include <skalibs/diuint.h> +#include <sys/types.h> +#include <skalibs/disize.h> #include <skalibs/stralloc.h> #include <skalibs/genalloc.h> #include <skalibs/djbunix.h> @@ -9,20 +10,20 @@ void unixmessage_sender_free (unixmessage_sender_t *b) { - unsigned int n = genalloc_len(int, &b->fds) ; + size_t n = genalloc_len(int, &b->fds) ; if (n) { - unsigned int i = genalloc_s(diuint, &b->offsets)[b->head].right ; + size_t i = genalloc_s(disize, &b->offsets)[b->head].right ; for (; i < n ; i++) { - register int fd = genalloc_s(int, &b->fds)[i] ; + int fd = genalloc_s(int, &b->fds)[i] ; if (fd < 0) (*b->closecb)(-(fd+1), b->closecbdata) ; #ifdef SKALIBS_HASANCILAUTOCLOSE else (*b->closecb)(fd, b->closecbdata) ; #endif } } - genalloc_free(diuint, &b->offsets) ; + genalloc_free(disize, &b->offsets) ; genalloc_free(int, &b->fds) ; stralloc_free(&b->data) ; *b = unixmessage_sender_zero ; |