diff options
author | Yang Tse <yangsita@gmail.com> | 2008-04-07 19:12:35 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-04-07 19:12:35 +0000 |
commit | f1b829e41857e01dcb0d497255c0d37521893025 (patch) | |
tree | 202954565e7f70d1a2d2cfb7dad09a70c4c6cfb0 | |
parent | 4ba9cb3a466bd01cca0642a348193c8b0211b53b (diff) | |
download | c-ares-f1b829e41857e01dcb0d497255c0d37521893025.tar.gz c-ares-f1b829e41857e01dcb0d497255c0d37521893025.tar.bz2 c-ares-f1b829e41857e01dcb0d497255c0d37521893025.zip |
make previous compiler warning fix more portable
-rw-r--r-- | adig.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |