projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
679a675
)
compiler warning fix
author
Yang Tse
<yangsita@gmail.com>
Mon, 19 Feb 2007 02:29:35 +0000
(
02:29
+0000)
committer
Yang Tse
<yangsita@gmail.com>
Mon, 19 Feb 2007 02:29:35 +0000
(
02:29
+0000)
ares_mkquery.c
patch
|
blob
|
history
diff --git
a/ares_mkquery.c
b/ares_mkquery.c
index
11ce302
..
8fcf35a
100644
(file)
--- a/
ares_mkquery.c
+++ b/
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. */