diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2024-11-10 04:32:21 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2024-11-10 04:32:21 +0000 |
commit | 24987730cea7db460f88e90730afbf0d3270b53b (patch) | |
tree | 5ec89fe75646c2e2e6044052b59bb6dce00f2485 /src/skadns/skadnsd.c | |
parent | 2007ef2bbd9c516507cb7f28fa9f772e9a760165 (diff) | |
download | s6-dns-main.tar.xz |
remove() is in stdio.h, which bionic pulls. lol @ bionic.
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/skadns/skadnsd.c')
-rw-r--r-- | src/skadns/skadnsd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/skadns/skadnsd.c b/src/skadns/skadnsd.c index 6e241c8..a26cb8f 100644 --- a/src/skadns/skadnsd.c +++ b/src/skadns/skadnsd.c @@ -36,7 +36,7 @@ static inline void dnsio_free (dnsio *p) s6dns_engine_free(&p->dt) ; } -static void remove (size_t i) +static void dnsio_remove (size_t i) { size_t n = genalloc_len(dnsio, &g) ; dnsio *a = genalloc_s(dnsio, &g) ; @@ -51,7 +51,7 @@ static void fail (size_t i) char pack[3] ; uint16_pack_big(pack, p->id) ; pack[2] = p->dt.status ; - remove(i) ; + dnsio_remove(i) ; if (!textmessage_put(textmessage_sender_x, pack, 3)) strerr_diefu1sys(111, "textmessage_put") ; } @@ -110,7 +110,7 @@ static int parse_protocol (struct iovec const *v, void *context) answer(ENOENT) ; break ; } - remove(i) ; + dnsio_remove(i) ; answer(0) ; break ; } @@ -190,7 +190,7 @@ int main (void) pack[2] = 0 ; if (!textmessage_putv(textmessage_sender_x, v, 2)) strerr_diefu1sys(111, "textmessage_put") ; - remove(i--) ; + dnsio_remove(i--) ; } } |