1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-06 04:39:42 +00:00

ares_dns.h: adjust DNS__16BIT and DNS__32BIT macro definitions

Fixing compiler warnings existing definitions triggered on these.
This commit is contained in:
Yang Tse
2011-08-21 19:18:53 +02:00
parent b816675c0f
commit 1089cf6052
4 changed files with 34 additions and 21 deletions

View File

@ -139,11 +139,11 @@ ares_parse_srv_reply (const unsigned char *abuf, int alen,
srv_last = srv_curr;
vptr = aptr;
srv_curr->priority = (unsigned short)DNS__16BIT(vptr);
srv_curr->priority = DNS__16BIT(vptr);
vptr += sizeof(unsigned short);
srv_curr->weight = (unsigned short)DNS__16BIT(vptr);
srv_curr->weight = DNS__16BIT(vptr);
vptr += sizeof(unsigned short);
srv_curr->port = (unsigned short)DNS__16BIT(vptr);
srv_curr->port = DNS__16BIT(vptr);
vptr += sizeof(unsigned short);
status = ares_expand_name (vptr, abuf, alen, &srv_curr->host, &len);