summaryrefslogtreecommitdiff
path: root/ahost.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-02 16:15:58 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-02 16:15:58 +0000
commit950eb09ae5ccb42ee3932e8c1272598800adfd8b (patch)
tree4c87ebdee918ba0fc57b3ef12edd59daca679203 /ahost.c
parent3d0a7c00df25d17e20ed8569a9186a79a4bb9625 (diff)
downloadc-ares-950eb09ae5ccb42ee3932e8c1272598800adfd8b.tar.gz
c-ares-950eb09ae5ccb42ee3932e8c1272598800adfd8b.tar.bz2
c-ares-950eb09ae5ccb42ee3932e8c1272598800adfd8b.zip
use the new single-argument ares_strerror()
Diffstat (limited to 'ahost.c')
-rw-r--r--ahost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ahost.c b/ahost.c
index d7ee8af..6aa6e3f 100644
--- a/ahost.c
+++ b/ahost.c
@@ -59,7 +59,7 @@ int main(int argc, char **argv)
status = ares_init(&channel);
if (status != ARES_SUCCESS)
{
- fprintf(stderr, "ares_init: %s\n", ares_strerror(status, &errmem));
+ fprintf(stderr, "ares_init: %s\n", ares_strerror(status));
ares_free_errmem(errmem);
return 1;
}
@@ -101,7 +101,7 @@ static void callback(void *arg, int status, struct hostent *host)
if (status != ARES_SUCCESS)
{
- fprintf(stderr, "%s: %s\n", (char *) arg, ares_strerror(status, &mem));
+ fprintf(stderr, "%s: %s\n", (char *) arg, ares_strerror(status));
ares_free_errmem(mem);
return;
}