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

make previous compiler warning fix more portable

This commit is contained in:
Yang Tse 2008-04-07 19:12:35 +00:00
parent 6fd3ff4032
commit 39b689f966

View File

@ -612,28 +612,28 @@ static const unsigned char *display_rr(const unsigned char *aptr,
printf(" %d\n", DNS__16BIT(aptr + 2)); /* preference */ printf(" %d\n", DNS__16BIT(aptr + 2)); /* preference */
p = aptr + 4; 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) if (status != ARES_SUCCESS)
return NULL; return NULL;
printf("\t\t\t\t\t\t%s\n", name); printf("\t\t\t\t\t\t%s\n", name);
ares_free_string(name); ares_free_string(name);
p += len; 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) if (status != ARES_SUCCESS)
return NULL; return NULL;
printf("\t\t\t\t\t\t%s\n", name); printf("\t\t\t\t\t\t%s\n", name);
ares_free_string(name); ares_free_string(name);
p += len; 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) if (status != ARES_SUCCESS)
return NULL; return NULL;
printf("\t\t\t\t\t\t%s\n", name); printf("\t\t\t\t\t\t%s\n", name);
ares_free_string(name); ares_free_string(name);
p += len; 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) if (status != ARES_SUCCESS)
return NULL; return NULL;
printf("\t\t\t\t\t\t%s", name); printf("\t\t\t\t\t\t%s", name);