summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cooks <acooks.at.bda@gmail.com>2024-04-24 15:01:28 +1000
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-05-03 12:42:09 +0000
commit718981b0fb9c252b0483dc352acdfdfe19ab1fb0 (patch)
treebc9fc5a669533533ab53cc92893528cf0ec9d3d5
parent13815b16ca3e4585221d8b5995cb34ee9a082c28 (diff)
lib: replace deprecated ares_process()
ares_process(...) has been deprecated. Replace it with ares_process_fd(...) Signed-off-by: Andrew Cooks <acooks.at.bda@gmail.com> (cherry picked from commit 4540fa0a3e702f577d378b3fa1f5f26591a0a5ad)
-rw-r--r--lib/resolver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/resolver.c b/lib/resolver.c
index d8245e3816..29a0eb740e 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);
}