diff options
| author | itojun <> | 2002-06-27 09:55:49 +0000 | 
|---|---|---|
| committer | itojun <> | 2002-06-27 09:55:49 +0000 | 
| commit | 109d4b11ca7904c66006363c1e4e37b9fa1f9562 (patch) | |
| tree | 8575dccb4ccbf396b3f59d778ea0c20079a7b2a3 /src/lib/libc | |
| parent | 477de871d4fc7c3d1864bb7c764d6a260d4c0143 (diff) | |
| download | openbsd-109d4b11ca7904c66006363c1e4e37b9fa1f9562.tar.gz openbsd-109d4b11ca7904c66006363c1e4e37b9fa1f9562.tar.bz2 openbsd-109d4b11ca7904c66006363c1e4e37b9fa1f9562.zip | |
%d/%u mixup (in #ifdef DEBUG)
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/net/getaddrinfo.c | 4 | ||||
| -rw-r--r-- | src/lib/libc/net/res_query.c | 6 | 
2 files changed, 5 insertions, 5 deletions
| diff --git a/src/lib/libc/net/getaddrinfo.c b/src/lib/libc/net/getaddrinfo.c index 3f4d916486..9e28e7a2e7 100644 --- a/src/lib/libc/net/getaddrinfo.c +++ b/src/lib/libc/net/getaddrinfo.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: getaddrinfo.c,v 1.34 2002/06/26 06:01:16 itojun Exp $ */ | 1 | /* $OpenBSD: getaddrinfo.c,v 1.35 2002/06/27 09:55:49 itojun Exp $ */ | 
| 2 | /* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */ | 2 | /* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */ | 
| 3 | 3 | ||
| 4 | /* | 4 | /* | 
| @@ -1584,7 +1584,7 @@ res_queryN(name, target) | |||
| 1584 | rcode = hp->rcode; /* record most recent error */ | 1584 | rcode = hp->rcode; /* record most recent error */ | 
| 1585 | #ifdef DEBUG | 1585 | #ifdef DEBUG | 
| 1586 | if (_res.options & RES_DEBUG) | 1586 | if (_res.options & RES_DEBUG) | 
| 1587 | printf(";; rcode = %d, ancount=%d\n", hp->rcode, | 1587 | printf(";; rcode = %u, ancount=%u\n", hp->rcode, | 
| 1588 | ntohs(hp->ancount)); | 1588 | ntohs(hp->ancount)); | 
| 1589 | #endif | 1589 | #endif | 
| 1590 | continue; | 1590 | continue; | 
| 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 @@ | |||
| 1 | /* $OpenBSD: res_query.c,v 1.18 2002/05/24 21:22:37 deraadt Exp $ */ | 1 | /* $OpenBSD: res_query.c,v 1.19 2002/06/27 09:55:49 itojun Exp $ */ | 
| 2 | 2 | ||
| 3 | /* | 3 | /* | 
| 4 | * ++Copyright++ 1988, 1993 | 4 | * ++Copyright++ 1988, 1993 | 
| @@ -60,7 +60,7 @@ | |||
| 60 | static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93"; | 60 | static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93"; | 
| 61 | static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $"; | 61 | static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $"; | 
| 62 | #else | 62 | #else | 
| 63 | static char rcsid[] = "$OpenBSD: res_query.c,v 1.18 2002/05/24 21:22:37 deraadt Exp $"; | 63 | static char rcsid[] = "$OpenBSD: res_query.c,v 1.19 2002/06/27 09:55:49 itojun Exp $"; | 
| 64 | #endif | 64 | #endif | 
| 65 | #endif /* LIBC_SCCS and not lint */ | 65 | #endif /* LIBC_SCCS and not lint */ | 
| 66 | 66 | ||
| @@ -149,7 +149,7 @@ res_query(name, class, type, answer, anslen) | |||
| 149 | if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { | 149 | if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { | 
| 150 | #ifdef DEBUG | 150 | #ifdef DEBUG | 
| 151 | if (_res.options & RES_DEBUG) | 151 | if (_res.options & RES_DEBUG) | 
| 152 | printf(";; rcode = %d, ancount=%d\n", hp->rcode, | 152 | printf(";; rcode = %u, ancount=%u\n", hp->rcode, | 
| 153 | ntohs(hp->ancount)); | 153 | ntohs(hp->ancount)); | 
| 154 | #endif | 154 | #endif | 
| 155 | switch (hp->rcode) { | 155 | switch (hp->rcode) { | 
