diff options
author | Yang Tse <yangsita@gmail.com> | 2008-04-07 14:37:17 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-04-07 14:37:17 +0000 |
commit | 4ba9cb3a466bd01cca0642a348193c8b0211b53b (patch) | |
tree | 98cb54f9ce59431b7bf3c231e09305d11c0d4133 /adig.c | |
parent | c73ff0391f177cf3b4210318d4f38191c2f6f8c3 (diff) | |
download | c-ares-4ba9cb3a466bd01cca0642a348193c8b0211b53b.tar.gz c-ares-4ba9cb3a466bd01cca0642a348193c8b0211b53b.tar.bz2 c-ares-4ba9cb3a466bd01cca0642a348193c8b0211b53b.zip |
fix compiler warning: indirection to slightly different base types
Diffstat (limited to 'adig.c')
-rw-r--r-- | adig.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -608,32 +608,32 @@ static const unsigned char *display_rr(const unsigned char *aptr, case T_NAPTR: - printf("\t%d", DNS__16BIT(aptr)); // order - printf(" %d\n", DNS__16BIT(aptr + 2)); // preference + printf("\t%d", DNS__16BIT(aptr)); /* order */ + printf(" %d\n", DNS__16BIT(aptr + 2)); /* preference */ p = aptr + 4; - status = ares_expand_string(p, abuf, alen, &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, &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, &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, &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); |