From 23d69c13bd49902b2883eec4d5e899b0d1bf85ea Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Tue, 17 Mar 2009 04:41:27 +0000 Subject: use c-ares --- zwgc/main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'zwgc') diff --git a/zwgc/main.c b/zwgc/main.c index 3d0fda0..771d155 100644 --- a/zwgc/main.c +++ b/zwgc/main.c @@ -53,7 +53,7 @@ static void setup_signals(int); static void detach(void); static void signal_exit(int); #ifdef HAVE_ARES -static void notice_callback(void *, int, struct hostent *); +static void notice_callback(void *, int, int, struct hostent *); #endif #ifdef CMU_ZWGCPLUS void reprocess_notice(ZNotice_t *notice, char *hostname); @@ -250,7 +250,6 @@ main(int argc, register char **current; int dofork = 1; #ifdef HAVE_ARES - char *errmem; int status; #endif @@ -299,8 +298,7 @@ main(int argc, status = ares_init(&achannel); if (status != ARES_SUCCESS) { fprintf(stderr, "Couldn't initialize resolver: %s\n", - ares_strerror(status, &errmem)); - ares_free_errmem(errmem); + ares_strerror(status)); return(1); } #endif @@ -431,6 +429,7 @@ notice_handler(ZNotice_t *notice) static void notice_callback(void *arg, int status, + int timeouts, struct hostent *fromhost) { ZNotice_t *notice = (ZNotice_t *) arg; -- cgit v1.2.3