about summary refs log tree commit diff
path: root/resolv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-04-20 04:56:49 +0000
committerUlrich Drepper <drepper@redhat.com>2008-04-20 04:56:49 +0000
commit0073dd2d49c6c8a2a4b82f71b2172fe361dac26a (patch)
tree127971f349bb65957e144c2ae54cb0f3df00a8a6 /resolv
parentc52137d39101515cacb67a2bcd43b77bd06284e0 (diff)
downloadglibc-0073dd2d49c6c8a2a4b82f71b2172fe361dac26a.tar.gz
glibc-0073dd2d49c6c8a2a4b82f71b2172fe361dac26a.tar.xz
glibc-0073dd2d49c6c8a2a4b82f71b2172fe361dac26a.zip
* resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_mkquery.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/resolv/res_mkquery.c b/resolv/res_mkquery.c
index 3fa597fecd..416bf1c32b 100644
--- a/resolv/res_mkquery.c
+++ b/resolv/res_mkquery.c
@@ -238,17 +238,13 @@ __res_nopt(res_state statp,
 
 	*cp++ = 0;	/* "." */
 
-	ns_put16(T_OPT, cp);	/* TYPE */
-	cp += INT16SZ;
-	ns_put16(anslen & 0xffff, cp);	/* CLASS = UDP payload size */
-	cp += INT16SZ;
+	NS_PUT16(T_OPT, cp);	/* TYPE */
+	NS_PUT16(anslen & 0xffff, cp);	/* CLASS = UDP payload size */
 	*cp++ = NOERROR;	/* extended RCODE */
 	*cp++ = 0;		/* EDNS version */
 	/* XXX Once we support DNSSEC we change the flag value here.  */
-	ns_put16(flags, cp);
-	cp += INT16SZ;
-	ns_put16(0, cp);	/* RDLEN */
-	cp += INT16SZ;
+	NS_PUT16(flags, cp);
+	NS_PUT16(0, cp);	/* RDLEN */
 	hp->arcount = htons(ntohs(hp->arcount) + 1);
 
 	return cp - buf;