summaryrefslogtreecommitdiff
path: root/usr/src/lib/libresolv/res_mkquery.c
diff options
context:
space:
mode:
authoranay <none@none>2005-07-26 11:14:16 -0700
committeranay <none@none>2005-07-26 11:14:16 -0700
commit6a1c6faa6f0834799d7de3e77fac2ec32d923f9a (patch)
treeb9ffae122f0cfeba99c72deca499b83cd22e9af4 /usr/src/lib/libresolv/res_mkquery.c
parent78eb75caca75144af27b7903ffed3fb549faab2f (diff)
downloadillumos-joyent-6a1c6faa6f0834799d7de3e77fac2ec32d923f9a.tar.gz
6274683 gcc and libresolv[2] don't get along
Diffstat (limited to 'usr/src/lib/libresolv/res_mkquery.c')
-rw-r--r--usr/src/lib/libresolv/res_mkquery.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/lib/libresolv/res_mkquery.c b/usr/src/lib/libresolv/res_mkquery.c
index acbd0ee6ed..1bc6ba1584 100644
--- a/usr/src/lib/libresolv/res_mkquery.c
+++ b/usr/src/lib/libresolv/res_mkquery.c
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 1998 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -118,6 +118,7 @@ static int _confcheck()
* Form all types of queries.
* Returns the size of the result or -1.
*/
+int
res_mkquery(op, dname, class, type, data, datalen, newrr, buf, buflen)
int op; /* opcode of query */
char *dname; /* domain name */
@@ -136,7 +137,7 @@ res_mkquery(op, dname, class, type, data, datalen, newrr, buf, buflen)
#ifdef DEBUG
if (_res.options & RES_DEBUG)
printf("res_mkquery(%d, %s, %d, %d)\n", op, dname, class, type);
-#endif DEBUG
+#endif /* DEBUG */
/*
* Check to see if we can bailout quickly.
@@ -304,7 +305,7 @@ res_mkquery(op, dname, class, type, data, datalen, newrr, buf, buflen)
hp->ancount = htons(0);
break;
-#endif ALLOW_UPDATES
+#endif /* ALLOW_UPDATES */
}
return (cp - buf);
}