]> 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>
Fri, 3 May 2024 12:42:09 +0000 (12:42 +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 d8245e3816cdf963050d44b8987ef3341a4843c9..29a0eb740e15067a29aa5a48be7ad8ec6e185648 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);
 }