summaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-04-07 19:12:35 +0000
committerYang Tse <yangsita@gmail.com>2008-04-07 19:12:35 +0000
commit39b689f966537c2dfd64e9b5aaf559ba7c9801cd (patch)
treece668565a797dc3aee1a9e8fb9f02f0928aec469 /ares
parent6fd3ff40323cebc5181a279df124847e2ecc4310 (diff)
downloadcurl-39b689f966537c2dfd64e9b5aaf559ba7c9801cd.tar.gz
make previous compiler warning fix more portable
Diffstat (limited to 'ares')
-rw-r--r--ares/adig.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ares/adig.c b/ares/adig.c
index f72fb1670..f7f601ce6 100644
--- a/ares/adig.c
+++ b/ares/adig.c
@@ -612,28 +612,28 @@ static const unsigned char *display_rr(const unsigned char *aptr,
printf(" %d\n", DNS__16BIT(aptr + 2)); /* preference */
p = aptr + 4;
- status = ares_expand_string(p, abuf, alen, &(unsigned char *)name, &len);
+ status = ares_expand_string(p, abuf, alen, (unsigned char **)&name, &len);
if (status != ARES_SUCCESS)
return NULL;
printf("\t\t\t\t\t\t%s\n", name);
ares_free_string(name);
p += len;
- status = ares_expand_string(p, abuf, alen, &(unsigned char *)name, &len);
+ status = ares_expand_string(p, abuf, alen, (unsigned char **)&name, &len);
if (status != ARES_SUCCESS)
return NULL;
printf("\t\t\t\t\t\t%s\n", name);
ares_free_string(name);
p += len;
- status = ares_expand_string(p, abuf, alen, &(unsigned char *)name, &len);
+ status = ares_expand_string(p, abuf, alen, (unsigned char **)&name, &len);
if (status != ARES_SUCCESS)
return NULL;
printf("\t\t\t\t\t\t%s\n", name);
ares_free_string(name);
p += len;
- status = ares_expand_string(p, abuf, alen, &(unsigned char *)name, &len);
+ status = ares_expand_string(p, abuf, alen, (unsigned char **)&name, &len);
if (status != ARES_SUCCESS)
return NULL;
printf("\t\t\t\t\t\t%s", name);