From 42a9e51bd7cb4c8d754d043e333c82df74e1cd5e Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 15 Nov 2011 00:33:49 +0400 Subject: [PATCH] Fix for wrong arity of callback function for c-ares See rhbz #753372 for further details https://bugzilla.redhat.com/753372 Signed-off-by: Peter Lemenkov (cherry picked from commit 512552d40fe734c1de2ff7998edfe7dae9ba6446) (cherry picked from commit 9fbed2f23c077329b4d0fa588b8a852e349fa46c) --- helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper.c b/helper.c index 0e21a3f..4eeeb9c 100644 --- a/helper.c +++ b/helper.c @@ -262,7 +262,7 @@ static const unsigned char *skip_query(const unsigned char *aptr, const unsigned return aptr; } -static void cares_callback(void *arg, int status, unsigned char *abuf, int alen) { +static void cares_callback(void *arg, int status, int timeouts, unsigned char *abuf, int alen) { int i; unsigned int ancount, nscount, arcount; const unsigned char *aptr;