summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_debug.c
diff options
context:
space:
mode:
authoritojun <>2002-06-27 10:14:02 +0000
committeritojun <>2002-06-27 10:14:02 +0000
commite08f871ca434f7bd4986a8b654059f32fda1e02a (patch)
tree2b8891e440030c912c28a1107ecacf13f0ae253a /src/lib/libc/net/res_debug.c
parent109d4b11ca7904c66006363c1e4e37b9fa1f9562 (diff)
downloadopenbsd-e08f871ca434f7bd4986a8b654059f32fda1e02a.tar.gz
openbsd-e08f871ca434f7bd4986a8b654059f32fda1e02a.tar.bz2
openbsd-e08f871ca434f7bd4986a8b654059f32fda1e02a.zip
%d -> %u. mostly in #ifdef DEBUG.
Diffstat (limited to 'src/lib/libc/net/res_debug.c')
-rw-r--r--src/lib/libc/net/res_debug.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/libc/net/res_debug.c b/src/lib/libc/net/res_debug.c
index 75d70e86b6..a1c88e24b3 100644
--- a/src/lib/libc/net/res_debug.c
+++ b/src/lib/libc/net/res_debug.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: res_debug.c,v 1.12 2002/05/24 21:22:37 deraadt Exp $ */ 1/* $OpenBSD: res_debug.c,v 1.13 2002/06/27 10:14:02 itojun Exp $ */
2 2
3/* 3/*
4 * ++Copyright++ 1985, 1990, 1993 4 * ++Copyright++ 1985, 1990, 1993
@@ -82,7 +82,7 @@
82static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93"; 82static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93";
83static char rcsid[] = "$From: res_debug.c,v 8.19 1996/11/26 10:11:23 vixie Exp $"; 83static char rcsid[] = "$From: res_debug.c,v 8.19 1996/11/26 10:11:23 vixie Exp $";
84#else 84#else
85static char rcsid[] = "$OpenBSD: res_debug.c,v 1.12 2002/05/24 21:22:37 deraadt Exp $"; 85static char rcsid[] = "$OpenBSD: res_debug.c,v 1.13 2002/06/27 10:14:02 itojun Exp $";
86#endif 86#endif
87#endif /* LIBC_SCCS and not lint */ 87#endif /* LIBC_SCCS and not lint */
88 88
@@ -286,7 +286,7 @@ __fp_nquery(msg, len, file)
286 cp = msg + HFIXEDSZ; 286 cp = msg + HFIXEDSZ;
287 endMark = msg + len; 287 endMark = msg + len;
288 if ((!_res.pfcode) || (_res.pfcode & RES_PRF_HEADX) || hp->rcode) { 288 if ((!_res.pfcode) || (_res.pfcode & RES_PRF_HEADX) || hp->rcode) {
289 fprintf(file, ";; ->>HEADER<<- opcode: %s, status: %s, id: %d", 289 fprintf(file, ";; ->>HEADER<<- opcode: %s, status: %s, id: %u",
290 _res_opcodes[hp->opcode], 290 _res_opcodes[hp->opcode],
291 _res_resultcodes[hp->rcode], 291 _res_resultcodes[hp->rcode],
292 ntohs(hp->id)); 292 ntohs(hp->id));
@@ -314,10 +314,10 @@ __fp_nquery(msg, len, file)
314 fprintf(file, " cd"); 314 fprintf(file, " cd");
315 } 315 }
316 if ((!_res.pfcode) || (_res.pfcode & RES_PRF_HEAD1)) { 316 if ((!_res.pfcode) || (_res.pfcode & RES_PRF_HEAD1)) {
317 fprintf(file, "; Ques: %d", ntohs(hp->qdcount)); 317 fprintf(file, "; Ques: %u", ntohs(hp->qdcount));
318 fprintf(file, ", Ans: %d", ntohs(hp->ancount)); 318 fprintf(file, ", Ans: %u", ntohs(hp->ancount));
319 fprintf(file, ", Auth: %d", ntohs(hp->nscount)); 319 fprintf(file, ", Auth: %u", ntohs(hp->nscount));
320 fprintf(file, ", Addit: %d", ntohs(hp->arcount)); 320 fprintf(file, ", Addit: %u", ntohs(hp->arcount));
321 } 321 }
322 if ((!_res.pfcode) || (_res.pfcode & 322 if ((!_res.pfcode) || (_res.pfcode &
323 (RES_PRF_HEADX | RES_PRF_HEAD2 | RES_PRF_HEAD1))) { 323 (RES_PRF_HEADX | RES_PRF_HEAD2 | RES_PRF_HEAD1))) {
@@ -531,7 +531,7 @@ __p_rr(cp, msg, file)
531 cp += sizeof (u_char); 531 cp += sizeof (u_char);
532 port = _getshort((u_char*)cp); 532 port = _getshort((u_char*)cp);
533 cp += INT16SZ; 533 cp += INT16SZ;
534 fprintf(file, "\t%s\t; proto %d, port %d", 534 fprintf(file, "\t%s\t; proto %u, port %u",
535 address, protocol, port); 535 address, protocol, port);
536 } 536 }
537 break; 537 break;
@@ -603,14 +603,14 @@ __p_rr(cp, msg, file)
603 case T_MX: 603 case T_MX:
604 case T_AFSDB: 604 case T_AFSDB:
605 case T_RT: 605 case T_RT:
606 fprintf(file, "\t%d ", _getshort((u_char*)cp)); 606 fprintf(file, "\t%u ", _getshort((u_char*)cp));
607 cp += INT16SZ; 607 cp += INT16SZ;
608 if ((cp = p_fqname(cp, msg, file)) == NULL) 608 if ((cp = p_fqname(cp, msg, file)) == NULL)
609 return (NULL); 609 return (NULL);
610 break; 610 break;
611 611
612 case T_PX: 612 case T_PX:
613 fprintf(file, "\t%d ", _getshort((u_char*)cp)); 613 fprintf(file, "\t%u ", _getshort((u_char*)cp));
614 cp += INT16SZ; 614 cp += INT16SZ;
615 if ((cp = p_fqname(cp, msg, file)) == NULL) 615 if ((cp = p_fqname(cp, msg, file)) == NULL)
616 return (NULL); 616 return (NULL);
@@ -786,7 +786,7 @@ __p_rr(cp, msg, file)
786 type = _getshort((u_char*)cp); 786 type = _getshort((u_char*)cp);
787 cp += INT16SZ; 787 cp += INT16SZ;
788 fprintf(file, " %s", p_type(type)); 788 fprintf(file, " %s", p_type(type));
789 fprintf(file, "\t%d", *cp++); /* algorithm */ 789 fprintf(file, "\t%u", *cp++); /* algorithm */
790 /* Check label value and print error if wrong. */ 790 /* Check label value and print error if wrong. */
791 n = *cp++; 791 n = *cp++;
792 c = dn_count_labels (rrname); 792 c = dn_count_labels (rrname);