]> git.puffer.fish Git - matthieu/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)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sun, 5 May 2024 17:20:51 +0000 (19:20 +0200)
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 0d64ad86e4724948bdbd38cb108b8048be40b744..ddb7a553e312c4352a67aafd7d4a5613526beb87 100755 (executable)
@@ -108,7 +108,7 @@ static void resolver_cb_timeout(struct thread *t)
 {
        struct resolver_state *r = THREAD_ARG(t);
 
-       ares_process(r->channel, NULL, NULL);
+       ares_process_fd(r->channel, ARES_SOCKET_BAD, ARES_SOCKET_BAD);
        resolver_update_timeouts(r);
 }