diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-06-14 10:45:19 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-06-14 10:45:19 +0000 |
commit | c187bc7686ee71aa95a0a01d3bffedd6914b3c00 (patch) | |
tree | 5ca1fd52f9cea1c9aca2485350cd83c9dd6b7ccf /src/fdholder | |
parent | 6c936711c61df41eeb936a98e6bc43584776ab08 (diff) | |
download | s6-c187bc7686ee71aa95a0a01d3bffedd6914b3c00.tar.xz |
Adapt s6-fdholderd to fixed iter_func type
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/fdholder')
-rw-r--r-- | src/fdholder/s6-fdholderd.c | 8 |
1 files 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) ; |