diff options
author | Yang Tse <yangsita@gmail.com> | 2007-02-19 02:29:35 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-02-19 02:29:35 +0000 |
commit | 07d8a14ec0165987a25c52c77abbd7aa7d87e750 (patch) | |
tree | 8c9bcf6c0bc33e39fba075f8c079062a12f2f725 /ares | |
parent | 31e598d2f39e2d4afc1e6f0a0b960f378e86da31 (diff) |
compiler warning fix
Diffstat (limited to 'ares')
-rw-r--r-- | ares/ares_mkquery.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ares/ares_mkquery.c b/ares/ares_mkquery.c index 11ce302b1..8fcf35a17 100644 --- a/ares/ares_mkquery.c +++ b/ares/ares_mkquery.c @@ -115,7 +115,12 @@ int ares_mkquery(const char *name, int dnsclass, int type, unsigned short id, memset(q, 0, HFIXEDSZ); DNS_HEADER_SET_QID(q, id); DNS_HEADER_SET_OPCODE(q, QUERY); - DNS_HEADER_SET_RD(q, (rd) ? 1 : 0); + if (rd) { + DNS_HEADER_SET_RD(q, 1); + } + else { + DNS_HEADER_SET_RD(q, 0); + } DNS_HEADER_SET_QDCOUNT(q, 1); /* A name of "." is a screw case for the loop below, so adjust it. */ |