Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/tcpdump style. s/switch(/switch (/.



details:   https://anonhg.NetBSD.org/src/rev/9b731a0759cb
branches:  trunk
changeset: 485297:9b731a0759cb
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Apr 24 13:02:28 2000 +0000

description:
style.  s/switch(/switch (/.

diffstat:

 usr.sbin/tcpdump/print-arcnet.c |  6 +++---
 usr.sbin/tcpdump/print-icmp6.c  |  8 ++++----
 usr.sbin/tcpdump/print-pim.c    |  8 ++++----
 usr.sbin/tcpdump/print-ppp.c    |  6 +++---
 usr.sbin/tcpdump/print-rt6.c    |  6 +++---
 5 files changed, 17 insertions(+), 17 deletions(-)

diffs (153 lines):

diff -r cef3ee142276 -r 9b731a0759cb usr.sbin/tcpdump/print-arcnet.c
--- a/usr.sbin/tcpdump/print-arcnet.c   Mon Apr 24 13:02:13 2000 +0000
+++ b/usr.sbin/tcpdump/print-arcnet.c   Mon Apr 24 13:02:28 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print-arcnet.c,v 1.1 1999/10/05 20:37:22 is Exp $      */
+/*     $NetBSD: print-arcnet.c,v 1.2 2000/04/24 13:02:28 itojun Exp $  */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -26,7 +26,7 @@
 static const char rcsid[] =
     "@(#) Header: print-ether.c,v 1.44 97/05/26 17:18:13 leres Exp  (LBL)";
 #else
-__RCSID("$NetBSD: print-arcnet.c,v 1.1 1999/10/05 20:37:22 is Exp $");
+__RCSID("$NetBSD: print-arcnet.c,v 1.2 2000/04/24 13:02:28 itojun Exp $");
 #endif
 #endif
 
@@ -168,7 +168,7 @@
        ap = (struct arc_header *)p;
        arc_type = ap->arc_type;
 
-       switch(arc_type) {
+       switch (arc_type) {
        default:
                phds = 1;
                break;
diff -r cef3ee142276 -r 9b731a0759cb usr.sbin/tcpdump/print-icmp6.c
--- a/usr.sbin/tcpdump/print-icmp6.c    Mon Apr 24 13:02:13 2000 +0000
+++ b/usr.sbin/tcpdump/print-icmp6.c    Mon Apr 24 13:02:28 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print-icmp6.c,v 1.6 1999/12/10 05:45:08 itojun Exp $   */
+/*     $NetBSD: print-icmp6.c,v 1.7 2000/04/24 13:02:28 itojun Exp $   */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994
@@ -27,7 +27,7 @@
     "@(#) /master/usr.sbin/tcpdump/tcpdump/print-icmp.c,v 2.1 1995/02/03 18:14:42 polk Exp (LBL)";
 #else
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: print-icmp6.c,v 1.6 1999/12/10 05:45:08 itojun Exp $");
+__RCSID("$NetBSD: print-icmp6.c,v 1.7 2000/04/24 13:02:28 itojun Exp $");
 #endif
 #endif
 
@@ -101,7 +101,7 @@
 #endif
 
        TCHECK(dp->icmp6_code);
-       switch(dp->icmp6_type) {
+       switch (dp->icmp6_type) {
        case ICMP6_DST_UNREACH:
                TCHECK(oip->ip6_dst);
                switch (dp->icmp6_code) {
@@ -454,7 +454,7 @@
        ECHECK(op->nd_opt_len);
        if (resid <= 0)
                return;
-       switch(op->nd_opt_type) {
+       switch (op->nd_opt_type) {
        case ND_OPT_SOURCE_LINKADDR:
                opl = (struct nd_opt_hdr *)op;
 #if 1
diff -r cef3ee142276 -r 9b731a0759cb usr.sbin/tcpdump/print-pim.c
--- a/usr.sbin/tcpdump/print-pim.c      Mon Apr 24 13:02:13 2000 +0000
+++ b/usr.sbin/tcpdump/print-pim.c      Mon Apr 24 13:02:28 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print-pim.c,v 1.4 1999/12/10 05:45:08 itojun Exp $     */
+/*     $NetBSD: print-pim.c,v 1.5 2000/04/24 13:02:29 itojun Exp $     */
 
 /*
  * Copyright (c) 1995, 1996
@@ -27,7 +27,7 @@
 static const char rcsid[] =
     "@(#) KAME Header: /cvsroot/kame/kame/kame/kame/tcpdump/print-pim.c,v 1.4 1999/11/17 14:49:49 jinmei Exp";
 #else
-__RCSID("$NetBSD: print-pim.c,v 1.4 1999/12/10 05:45:08 itojun Exp $");
+__RCSID("$NetBSD: print-pim.c,v 1.5 2000/04/24 13:02:29 itojun Exp $");
 #endif
 #endif
 
@@ -145,7 +145,7 @@
        TCHECK(pim->pim_rsv);
 #endif
 
-       switch(pim->pim_ver) {
+       switch (pim->pim_ver) {
         case 2:                /* avoid hardcoding? */
                (void)printf("PIMv2");
                pimv2_print(bp, len);
@@ -315,7 +315,7 @@
                if (bp >= ep)
                        break;
                ip = (struct ip *)bp;
-               switch(ip->ip_v) {
+               switch (ip->ip_v) {
                 case 4:        /* IPv4 */
                        printf(" ");
                        ip_print(bp, len);
diff -r cef3ee142276 -r 9b731a0759cb usr.sbin/tcpdump/print-ppp.c
--- a/usr.sbin/tcpdump/print-ppp.c      Mon Apr 24 13:02:13 2000 +0000
+++ b/usr.sbin/tcpdump/print-ppp.c      Mon Apr 24 13:02:28 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print-ppp.c,v 1.9 2000/04/10 15:24:36 itojun Exp $     */
+/*     $NetBSD: print-ppp.c,v 1.10 2000/04/24 13:02:30 itojun Exp $    */
 
 /*
  * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
@@ -27,7 +27,7 @@
 static const char rcsid[] =
     "@(#) Header: print-ppp.c,v 1.26 97/06/12 14:21:29 leres Exp  (LBL)";
 #else
-__RCSID("$NetBSD: print-ppp.c,v 1.9 2000/04/10 15:24:36 itojun Exp $");
+__RCSID("$NetBSD: print-ppp.c,v 1.10 2000/04/24 13:02:30 itojun Exp $");
 #endif
 #endif
 
@@ -319,7 +319,7 @@
 
 #undef GET2
 
-                       switch(type) {
+                       switch (type) {
                        case CISCO_KEEP_TYPE_ADDR_REPLY:
                                printf("CISCO ADDR REPLY ");
                                break;
diff -r cef3ee142276 -r 9b731a0759cb usr.sbin/tcpdump/print-rt6.c
--- a/usr.sbin/tcpdump/print-rt6.c      Mon Apr 24 13:02:13 2000 +0000
+++ b/usr.sbin/tcpdump/print-rt6.c      Mon Apr 24 13:02:28 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print-rt6.c,v 1.4 2000/04/24 13:01:24 itojun Exp $     */
+/*     $NetBSD: print-rt6.c,v 1.5 2000/04/24 13:02:30 itojun Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994
@@ -27,7 +27,7 @@
     "@(#) /master/usr.sbin/tcpdump/tcpdump/print-icmp.c,v 2.1 1995/02/03 18:14:42 polk Exp (LBL)";
 #else
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: print-rt6.c,v 1.4 2000/04/24 13:01:24 itojun Exp $");
+__RCSID("$NetBSD: print-rt6.c,v 1.5 2000/04/24 13:02:30 itojun Exp $");
 #endif
 #endif
 
@@ -85,7 +85,7 @@
        printf("type=%d, ", dp->ip6r_type);
        printf("segleft=%d, ", dp->ip6r_segleft);
 
-       switch(dp->ip6r_type) {
+       switch (dp->ip6r_type) {
        case IPV6_RTHDR_TYPE_0:
                dp0 = (struct ip6_rthdr0 *)dp;
 



Home | Main Index | Thread Index | Old Index