From: Andrew Cooks Date: Wed, 24 Apr 2024 05:01:28 +0000 (+1000) Subject: lib: replace deprecated ares_process() X-Git-Tag: docker/9.0.3~13^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=cf4ac9cd937d986c41f7ea876181c8d90d685896;p=mirror%2Ffrr.git lib: replace deprecated ares_process() ares_process(...) has been deprecated. Replace it with ares_process_fd(...) Signed-off-by: Andrew Cooks (cherry picked from commit 4540fa0a3e702f577d378b3fa1f5f26591a0a5ad) --- diff --git a/lib/resolver.c b/lib/resolver.c index 99bf356eb3..c3dd618666 100644 --- a/lib/resolver.c +++ b/lib/resolver.c @@ -104,7 +104,7 @@ static void resolver_cb_timeout(struct event *t) { struct resolver_state *r = EVENT_ARG(t); - ares_process(r->channel, NULL, NULL); + ares_process_fd(r->channel, ARES_SOCKET_BAD, ARES_SOCKET_BAD); resolver_update_timeouts(r); }