summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_sender_free.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libunixonacid/unixmessage_sender_free.c')
-rw-r--r--src/libunixonacid/unixmessage_sender_free.c11
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 ;