summaryrefslogtreecommitdiff
path: root/zwgc
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2009-03-17 04:41:27 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2009-03-17 04:41:27 +0000
commit23d69c13bd49902b2883eec4d5e899b0d1bf85ea (patch)
tree95e96a284ed362b60542f94be66526bc760d805f /zwgc
parent7763106b4491567509a45c434421669840f365ae (diff)
use c-ares
Diffstat (limited to 'zwgc')
-rw-r--r--zwgc/main.c7
1 files changed, 3 insertions, 4 deletions
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;