1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

use the new single-argument ares_strerror()

This commit is contained in:
Daniel Stenberg 2004-02-02 16:15:58 +00:00
parent 886391d145
commit 462d1c5231
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;
}