From 109d4b11ca7904c66006363c1e4e37b9fa1f9562 Mon Sep 17 00:00:00 2001 From: itojun <> Date: Thu, 27 Jun 2002 09:55:49 +0000 Subject: %d/%u mixup (in #ifdef DEBUG) --- src/lib/libc/net/res_query.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libc/net/res_query.c') diff --git a/src/lib/libc/net/res_query.c b/src/lib/libc/net/res_query.c index 53837815c3..9c1aef1218 100644 --- a/src/lib/libc/net/res_query.c +++ b/src/lib/libc/net/res_query.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_query.c,v 1.18 2002/05/24 21:22:37 deraadt Exp $ */ +/* $OpenBSD: res_query.c,v 1.19 2002/06/27 09:55:49 itojun Exp $ */ /* * ++Copyright++ 1988, 1993 @@ -60,7 +60,7 @@ static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93"; static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $"; #else -static char rcsid[] = "$OpenBSD: res_query.c,v 1.18 2002/05/24 21:22:37 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: res_query.c,v 1.19 2002/06/27 09:55:49 itojun Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -149,7 +149,7 @@ res_query(name, class, type, answer, anslen) if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { #ifdef DEBUG if (_res.options & RES_DEBUG) - printf(";; rcode = %d, ancount=%d\n", hp->rcode, + printf(";; rcode = %u, ancount=%u\n", hp->rcode, ntohs(hp->ancount)); #endif switch (hp->rcode) { -- cgit v1.2.3-55-g6feb