From: Yang Tse Date: Mon, 7 Apr 2008 19:12:35 +0000 (+0000) Subject: make previous compiler warning fix more portable X-Git-Tag: upstream/7.37.1~7923 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39b689f966537c2dfd64e9b5aaf559ba7c9801cd;p=platform%2Fupstream%2Fcurl.git make previous compiler warning fix more portable --- diff --git a/ares/adig.c b/ares/adig.c index f72fb16..f7f601c 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);