From 462d1c523158b2a064ed477d24246f6813d521c9 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Mon, 2 Feb 2004 16:15:58 +0000
Subject: [PATCH] use the new single-argument ares_strerror()

---
 ares/adig.c  | 4 ++--
 ares/ahost.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ares/adig.c b/ares/adig.c
index 59ca1247bd..706a1b26e2 100644
--- a/ares/adig.c
+++ b/ares/adig.c
@@ -239,7 +239,7 @@ int main(int argc, char **argv)
   if (status != ARES_SUCCESS)
     {
       fprintf(stderr, "ares_init_options: %s\n",
-	      ares_strerror(status, &errmem));
+	      ares_strerror(status));
       ares_free_errmem(errmem);
       return 1;
     }
@@ -295,7 +295,7 @@ static void callback(void *arg, int status, unsigned char *abuf, int alen)
    */
   if (status != ARES_SUCCESS)
     {
-      printf("%s\n", ares_strerror(status, &errmem));
+      printf("%s\n", ares_strerror(status));
       ares_free_errmem(errmem);
       if (!abuf)
 	return;
diff --git a/ares/ahost.c b/ares/ahost.c
index d7ee8afe8d..6aa6e3f59b 100644
--- a/ares/ahost.c
+++ b/ares/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;
     }
-- 
GitLab