Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/net sync with BIND 4.9.7. mostly costmetic.



details:   https://anonhg.NetBSD.org/src/rev/0ef027c50453
branches:  trunk
changeset: 485336:0ef027c50453
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Apr 25 13:26:03 2000 +0000

description:
sync with BIND 4.9.7. mostly costmetic.

diffstat:

 lib/libc/net/getnetent.c |   6 +++---
 lib/libc/net/res_debug.c |  30 +++++++++++++++---------------
 2 files changed, 18 insertions(+), 18 deletions(-)

diffs (118 lines):

diff -r 69ad2fd0c1fb -r 0ef027c50453 lib/libc/net/getnetent.c
--- a/lib/libc/net/getnetent.c  Tue Apr 25 12:31:10 2000 +0000
+++ b/lib/libc/net/getnetent.c  Tue Apr 25 13:26:03 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getnetent.c,v 1.13 2000/01/22 22:19:14 mycroft Exp $   */
+/*     $NetBSD: getnetent.c,v 1.14 2000/04/25 13:26:03 itojun Exp $    */
 
 /*
  * Copyright (c) 1983, 1993
@@ -48,7 +48,7 @@
 static char sccsid[] = "@(#)getnetent.c        8.1 (Berkeley) 6/4/93";
 static char rcsid[] = "Id: getnetent.c,v 8.4 1997/06/01 20:34:37 vixie Exp ";
 #else
-__RCSID("$NetBSD: getnetent.c,v 1.13 2000/01/22 22:19:14 mycroft Exp $");
+__RCSID("$NetBSD: getnetent.c,v 1.14 2000/04/25 13:26:03 itojun Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -149,7 +149,7 @@
        net.n_net = inet_network(cp);
        net.n_addrtype = AF_INET;
        q = net.n_aliases = net_aliases;
-       if (p != NULL)  {
+       if (p != NULL) {
                cp = p;
                while (cp && *cp) {
                        if (*cp == ' ' || *cp == '\t') {
diff -r 69ad2fd0c1fb -r 0ef027c50453 lib/libc/net/res_debug.c
--- a/lib/libc/net/res_debug.c  Tue Apr 25 12:31:10 2000 +0000
+++ b/lib/libc/net/res_debug.c  Tue Apr 25 13:26:03 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: res_debug.c,v 1.25 1999/09/20 04:39:17 lukem Exp $     */
+/*     $NetBSD: res_debug.c,v 1.26 2000/04/25 13:26:03 itojun Exp $    */
 
 /*-
  * Copyright (c) 1985, 1990, 1993
@@ -81,7 +81,7 @@
 static char sccsid[] = "@(#)res_debug.c        8.1 (Berkeley) 6/4/93";
 static char rcsid[] = "Id: res_debug.c,v 8.20 1997/06/01 20:34:37 vixie Exp ";
 #else
-__RCSID("$NetBSD: res_debug.c,v 1.25 1999/09/20 04:39:17 lukem Exp $");
+__RCSID("$NetBSD: res_debug.c,v 1.26 2000/04/25 13:26:03 itojun Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -325,7 +325,7 @@
        cp = msg + HFIXEDSZ;
        endMark = msg + len;
        if ((!_res.pfcode) || (_res.pfcode & RES_PRF_HEADX) || hp->rcode) {
-               fprintf(file,";; ->>HEADER<<- opcode: %s, status: %s, id: %d",
+               fprintf(file, ";; ->>HEADER<<- opcode: %s, status: %s, id: %d",
                        _res_opcodes[hp->opcode],
                        _res_resultcodes[hp->rcode],
                        ntohs(hp->id));
@@ -334,17 +334,17 @@
        if ((!_res.pfcode) || (_res.pfcode & RES_PRF_HEADX))
                putc(';', file);
        if ((!_res.pfcode) || (_res.pfcode & RES_PRF_HEAD2)) {
-               fprintf(file,"; flags:");
+               fprintf(file, "; flags:");
                if (hp->qr)
-                       fprintf(file," qr");
+                       fprintf(file, " qr");
                if (hp->aa)
-                       fprintf(file," aa");
+                       fprintf(file, " aa");
                if (hp->tc)
-                       fprintf(file," tc");
+                       fprintf(file, " tc");
                if (hp->rd)
-                       fprintf(file," rd");
+                       fprintf(file, " rd");
                if (hp->ra)
-                       fprintf(file," ra");
+                       fprintf(file, " ra");
                if (hp->unused)
                        fprintf(file, " UNUSED-BIT-ON");
                if (hp->ad)
@@ -353,9 +353,9 @@
                        fprintf(file, " cd");
        }
        if ((!_res.pfcode) || (_res.pfcode & RES_PRF_HEAD1)) {
-               fprintf(file,"; Ques: %d", ntohs(hp->qdcount));
-               fprintf(file,", Ans: %d", ntohs(hp->ancount));
-               fprintf(file,", Auth: %d", ntohs(hp->nscount));
+               fprintf(file, "; Ques: %d", ntohs(hp->qdcount));
+               fprintf(file, ", Ans: %d", ntohs(hp->ancount));
+               fprintf(file, ", Auth: %d", ntohs(hp->nscount));
                fprintf(file, ", Addit: %d", ntohs(hp->arcount));
        }
        if ((!_res.pfcode) || (_res.pfcode & 
@@ -425,7 +425,7 @@
        return;
  trunc:
        fprintf(file, "\n;; ...truncated\n");
-               return;
+       return;
  error:
        fprintf(file, "\n;; ...malformed\n");
 }
@@ -806,7 +806,7 @@
                while (cp < cp1 + dlen) {
                        c = *cp++;
                        do {
-                               if (c & 0200) {
+                               if (c & 0200) {
                                        if (lcnt == 0) {
                                                fputs("\n\t\t\t", file);
                                                lcnt = 5;
@@ -815,7 +815,7 @@
                                        putc(' ', file);
                                        lcnt--;
                                }
-                               c <<= 1;
+                               c <<= 1;
                        } while (++n & 07);
                }
                putc(')', file);



Home | Main Index | Thread Index | Old Index