commit c187bc7686ee71aa95a0a01d3bffedd6914b3c00
parent 6c936711c61df41eeb936a98e6bc43584776ab08
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Wed, 14 Jun 2023 10:45:19 +0000
Adapt s6-fdholderd to fixed iter_func type
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/fdholder/s6-fdholderd.c b/src/fdholder/s6-fdholderd.c
@@ -300,10 +300,10 @@ static int do_retrieve (uint32_t cc, unixmessage const *m)
return 1 ;
}
-static int fill_siovec_with_ids_iter (char *thing, void *data)
+static int fill_siovec_with_ids_iter (void *thing, void *data)
{
struct iovec *v = (*(struct iovec **)data)++ ;
- s6_fdholder_fd_t *p = (s6_fdholder_fd_t *)thing ;
+ s6_fdholder_fd_t *p = thing ;
v->iov_base = p->id ;
v->iov_len = strlen(p->id) + 1 ;
return 1 ;
@@ -334,9 +334,9 @@ struct getdumpiter_s
char *limit ;
} ;
-static int getdump_iter (char *thing, void *stuff)
+static int getdump_iter (void *thing, void *stuff)
{
- s6_fdholder_fd_t *p = (s6_fdholder_fd_t *)thing ;
+ s6_fdholder_fd_t *p = thing ;
getdumpiter_t *blah = stuff ;
unsigned char len = strlen(p->id) ;
tain_pack(blah->limit, &p->limit) ;