Skip to content
Snippets Groups Projects
Commit ab8d1464 authored by Yang Tse's avatar Yang Tse
Browse files

fix compiler warning: indirection to slightly different base types

parent bf90d11a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment