summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_debug.c
diff options
context:
space:
mode:
authormillert <>1997-07-09 01:08:53 +0000
committermillert <>1997-07-09 01:08:53 +0000
commit876d3a1be4aa406672cc674a171f26878319d505 (patch)
tree72a738d612791a6e60d74a474bca3bbbcac4828c /src/lib/libc/net/res_debug.c
parentfd3592b18f24103bfc82412a8950e5f06e549ff1 (diff)
downloadopenbsd-876d3a1be4aa406672cc674a171f26878319d505.tar.gz
openbsd-876d3a1be4aa406672cc674a171f26878319d505.tar.bz2
openbsd-876d3a1be4aa406672cc674a171f26878319d505.zip
Clean up some -Wall flowers.
Diffstat (limited to 'src/lib/libc/net/res_debug.c')
-rw-r--r--src/lib/libc/net/res_debug.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/libc/net/res_debug.c b/src/lib/libc/net/res_debug.c
index f002e11d7d..908ad421b7 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.7 1997/04/30 05:54:43 tholo Exp $ */ 1/* $OpenBSD: res_debug.c,v 1.8 1997/07/09 01:08:51 millert 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.7 1997/04/30 05:54:43 tholo Exp $"; 85static char rcsid[] = "$OpenBSD: res_debug.c,v 1.8 1997/07/09 01:08:51 millert Exp $";
86#endif 86#endif
87#endif /* LIBC_SCCS and not lint */ 87#endif /* LIBC_SCCS and not lint */
88 88
@@ -201,7 +201,7 @@ do_rrset(msg, len, cp, cnt, pflag, file, hs)
201 * Print answer records. 201 * Print answer records.
202 */ 202 */
203 sflag = (_res.pfcode & pflag); 203 sflag = (_res.pfcode & pflag);
204 if (n = ntohs(cnt)) { 204 if ((n = ntohs(cnt))) {
205 if ((!_res.pfcode) || 205 if ((!_res.pfcode) ||
206 ((sflag) && (_res.pfcode & RES_PRF_HEAD1))) 206 ((sflag) && (_res.pfcode & RES_PRF_HEAD1)))
207 fprintf(file, hs); 207 fprintf(file, hs);
@@ -322,7 +322,7 @@ __fp_nquery(msg, len, file)
322 /* 322 /*
323 * Print question records. 323 * Print question records.
324 */ 324 */
325 if (n = ntohs(hp->qdcount)) { 325 if ((n = ntohs(hp->qdcount))) {
326 if ((!_res.pfcode) || (_res.pfcode & RES_PRF_QUES)) 326 if ((!_res.pfcode) || (_res.pfcode & RES_PRF_QUES))
327 fprintf(file, ";; QUESTIONS:\n"); 327 fprintf(file, ";; QUESTIONS:\n");
328 while (--n >= 0) { 328 while (--n >= 0) {
@@ -632,7 +632,7 @@ __p_rr(cp, msg, file)
632 cp2 = cp1 + dlen; 632 cp2 = cp1 + dlen;
633 while (cp < cp2) { 633 while (cp < cp2) {
634 putc('"', file); 634 putc('"', file);
635 if (n = (unsigned char) *cp++) { 635 if ((n = (unsigned char) *cp++)) {
636 for (c = n; c > 0 && cp < cp2; c--) { 636 for (c = n; c > 0 && cp < cp2; c--) {
637 if (strchr("\n\"\\", *cp)) 637 if (strchr("\n\"\\", *cp))
638 (void) putc('\\', file); 638 (void) putc('\\', file);
@@ -847,8 +847,8 @@ __p_rr(cp, msg, file)
847 putc('\n', file); 847 putc('\n', file);
848#endif 848#endif
849 if (cp - cp1 != dlen) { 849 if (cp - cp1 != dlen) {
850 fprintf(file, ";; packet size error (found %d, dlen was %d)\n", 850 fprintf(file, ";; packet size error (found %ld, dlen was %d)\n",
851 cp - cp1, dlen); 851 (long)(cp - cp1), dlen);
852 cp = NULL; 852 cp = NULL;
853 } 853 }
854 return (cp); 854 return (cp);
@@ -929,7 +929,7 @@ __sym_ston(syms, name, success)
929 char *name; 929 char *name;
930 int *success; 930 int *success;
931{ 931{
932 for (NULL; syms->name != 0; syms++) { 932 for (; syms->name != 0; syms++) {
933 if (strcasecmp (name, syms->name) == 0) { 933 if (strcasecmp (name, syms->name) == 0) {
934 if (success) 934 if (success)
935 *success = 1; 935 *success = 1;
@@ -949,7 +949,7 @@ __sym_ntos(syms, number, success)
949{ 949{
950 static char unname[20]; 950 static char unname[20];
951 951
952 for (NULL; syms->name != 0; syms++) { 952 for (; syms->name != 0; syms++) {
953 if (number == syms->number) { 953 if (number == syms->number) {
954 if (success) 954 if (success)
955 *success = 1; 955 *success = 1;
@@ -972,7 +972,7 @@ __sym_ntop(syms, number, success)
972{ 972{
973 static char unname[20]; 973 static char unname[20];
974 974
975 for (NULL; syms->name != 0; syms++) { 975 for (; syms->name != 0; syms++) {
976 if (number == syms->number) { 976 if (number == syms->number) {
977 if (success) 977 if (success)
978 *success = 1; 978 *success = 1;