diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-02 16:15:58 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-02 16:15:58 +0000 |
commit | 950eb09ae5ccb42ee3932e8c1272598800adfd8b (patch) | |
tree | 4c87ebdee918ba0fc57b3ef12edd59daca679203 /ahost.c | |
parent | 3d0a7c00df25d17e20ed8569a9186a79a4bb9625 (diff) | |
download | c-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |