]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: replace deprecated ares_process()
authorAndrew Cooks <acooks.at.bda@gmail.com>
Wed, 24 Apr 2024 05:01:28 +0000 (15:01 +1000)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Mon, 6 May 2024 07:12:23 +0000 (07:12 +0000)
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)

lib/resolver.c

index 99bf356eb3e648c5a3a7e68c4806051041e2aa5a..c3dd618666bcd67751ee11eb41c9a699b31835e4 100644 (file)
@@ -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);
 }