From c187bc7686ee71aa95a0a01d3bffedd6914b3c00 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 14 Jun 2023 10:45:19 +0000 Subject: Adapt s6-fdholderd to fixed iter_func type Signed-off-by: Laurent Bercot --- src/fdholder/s6-fdholderd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fdholder/s6-fdholderd.c b/src/fdholder/s6-fdholderd.c index d357127..8c6a0f9 100644 --- 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) ; -- cgit v1.2.3