aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-04-07 14:37:17 +0000
committerYang Tse <yangsita@gmail.com>2008-04-07 14:37:17 +0000
commitab8d1464a7b5a11e1ec88c42ede77541e9314e6c (patch)
treee4ce0f7881c0827e9a1596f8c27bbd3d1db14a9b
parentbf90d11a31e99896bfcafab3c0e5ec7ca51d8c3f (diff)
fix compiler warning: indirection to slightly different base types
-rw-r--r--ares/adig.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ares/adig.c b/ares/adig.c
index e579c55f3..f72fb1670 100644
--- a/ares/adig.c
+++ b/ares/adig.c
@@ -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);