-# $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
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:
-/* $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
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 */
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;