summaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1997-04-13 22:37:22 +0000
committerNiels Provos <provos@cvs.openbsd.org>1997-04-13 22:37:22 +0000
commit4873d8d7d412697119f22209bb16cb042a9c2c07 (patch)
treed5832bc10097aa4057702a5b8ec2607f92f48a11 /lib/libc/net
parenta1312198c5e8ac18e9250372e85793bbc090a026 (diff)
fouled up a tiny bit
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/Makefile.inc4
-rw-r--r--lib/libc/net/res_mkquery.c7
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/net/Makefile.inc b/lib/libc/net/Makefile.inc
index 03f7349e5e7..4272b1ddde6 100644
--- a/lib/libc/net/Makefile.inc
+++ b/lib/libc/net/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.9 1997/03/13 19:07:21 downsj Exp $
+# $OpenBSD: Makefile.inc,v 1.10 1997/04/13 22:37:17 provos Exp $
# net sources
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/net ${.CURDIR}/net
@@ -11,7 +11,7 @@ SRCS+= base64.c gethostnamadr.c getnetbyaddr.c getnetbyname.c getnetent.c \
inet_pton.c ipx_addr.c ipx_ntoa.c \
iso_addr.c linkaddr.c ns_addr.c ns_ntoa.c nsap_addr.c rcmd.c recv.c \
res_comp.c res_data.c res_debug.c res_init.c res_mkquery.c res_query.c \
- res_send.c send.c sethostent.c ethers.c rcmdsh.c
+ res_random.c res_send.c send.c sethostent.c ethers.c rcmdsh.c
# machine-dependent net sources
# m-d Makefile.inc must include sources for:
diff --git a/lib/libc/net/res_mkquery.c b/lib/libc/net/res_mkquery.c
index 2c244c24fc8..3e7e2ae5d31 100644
--- a/lib/libc/net/res_mkquery.c
+++ b/lib/libc/net/res_mkquery.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: res_mkquery.c,v 1.7 1997/04/13 21:30:46 provos Exp $ */
+/* $OpenBSD: res_mkquery.c,v 1.8 1997/04/13 22:37:21 provos Exp $ */
/*
* ++Copyright++ 1985, 1993
@@ -60,7 +60,7 @@
static char sccsid[] = "@(#)res_mkquery.c 8.1 (Berkeley) 6/4/93";
static char rcsid[] = "$From: res_mkquery.c,v 8.5 1996/08/27 08:33:28 vixie Exp $";
#else
-static char rcsid[] = "$OpenBSD: res_mkquery.c,v 1.7 1997/04/13 21:30:46 provos Exp $";
+static char rcsid[] = "$OpenBSD: res_mkquery.c,v 1.8 1997/04/13 22:37:21 provos Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -116,7 +116,8 @@ res_mkquery(op, dname, class, type, data, datalen, newrr_in, buf, buflen)
return (-1);
bzero(buf, HFIXEDSZ);
hp = (HEADER *) buf;
- hp->id = htons(_res.id=res_randomid());
+ _res.id = res_randomid();
+ hp->id = htons(_res.id);
hp->opcode = op;
hp->rd = (_res.options & RES_RECURSE) != 0;
hp->rcode = NOERROR;