style. s/switch(/switch (/.
This commit is contained in:
parent
6d1291a469
commit
17023b3e8f
|
@ -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 @@ arcnet_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
|
|||
ap = (struct arc_header *)p;
|
||||
arc_type = ap->arc_type;
|
||||
|
||||
switch(arc_type) {
|
||||
switch (arc_type) {
|
||||
default:
|
||||
phds = 1;
|
||||
break;
|
||||
|
|
|
@ -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 @@ static const char rcsid[] =
|
|||
"@(#) /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 @@ icmp6_print(register const u_char *bp, register const u_char *bp2)
|
|||
#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 @@ icmp6_opt_print(register const u_char *bp, int resid)
|
|||
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
|
||||
|
|
|
@ -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 @@ pim_print(register const u_char *bp, register u_int len)
|
|||
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 @@ pimv2_print(register const u_char *bp, register u_int len)
|
|||
if (bp >= ep)
|
||||
break;
|
||||
ip = (struct ip *)bp;
|
||||
switch(ip->ip_v) {
|
||||
switch (ip->ip_v) {
|
||||
case 4: /* IPv4 */
|
||||
printf(" ");
|
||||
ip_print(bp, len);
|
||||
|
|
|
@ -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 @@ ppp_netbsd_serial_if_print(u_char *user, const struct pcap_pkthdr *h,
|
|||
|
||||
#undef GET2
|
||||
|
||||
switch(type) {
|
||||
switch (type) {
|
||||
case CISCO_KEEP_TYPE_ADDR_REPLY:
|
||||
printf("CISCO ADDR REPLY ");
|
||||
break;
|
||||
|
|
|
@ -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 @@ static const char rcsid[] =
|
|||
"@(#) /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 @@ rt6_print(register const u_char *bp, register const u_char *bp2)
|
|||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue