From 860a851ea849f2b3d0a996c97309907fd198eaf4 Mon Sep 17 00:00:00 2001 From: itojun Date: Fri, 2 May 2003 03:15:23 +0000 Subject: [PATCH] KNF --- sys/net/if_arcsubr.c | 7 +++---- sys/net/if_ethersubr.c | 6 +++--- sys/net/if_ppp.c | 6 +++--- sys/net/if_tokensubr.c | 6 +++--- sys/net/if_tun.c | 6 +++--- sys/net/rtsock.c | 11 +++++------ sys/net/slcompress.c | 6 +++--- 7 files changed, 23 insertions(+), 25 deletions(-) diff --git a/sys/net/if_arcsubr.c b/sys/net/if_arcsubr.c index fd47fdb42ec2..b3a6b8e53686 100644 --- a/sys/net/if_arcsubr.c +++ b/sys/net/if_arcsubr.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_arcsubr.c,v 1.41 2003/01/19 23:13:46 simonb Exp $ */ +/* $NetBSD: if_arcsubr.c,v 1.42 2003/05/02 03:15:23 itojun Exp $ */ /* * Copyright (c) 1994, 1995 Ignatios Souvatzis @@ -39,7 +39,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_arcsubr.c,v 1.41 2003/01/19 23:13:46 simonb Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_arcsubr.c,v 1.42 2003/05/02 03:15:23 itojun Exp $"); #include "opt_inet.h" @@ -209,8 +209,7 @@ arc_output(ifp, m0, dst, rt0) arph->ar_hrd = htons(ARPHRD_ARCNET); - switch(ntohs(arph->ar_op)) { - + switch (ntohs(arph->ar_op)) { case ARPOP_REVREQUEST: case ARPOP_REVREPLY: if (!(ifp->if_flags & IFF_LINK0)) { diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 4984e7860279..dea36046eaa3 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ethersubr.c,v 1.106 2003/03/25 13:29:39 bouyer Exp $ */ +/* $NetBSD: if_ethersubr.c,v 1.107 2003/05/02 03:15:23 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -65,7 +65,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.106 2003/03/25 13:29:39 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.107 2003/05/02 03:15:23 itojun Exp $"); #include "opt_inet.h" #include "opt_atalk.h" @@ -281,7 +281,7 @@ ether_output(struct ifnet *ifp, struct mbuf *m0, struct sockaddr *dst, ah->ar_hrd = htons(ARPHRD_ETHER); - switch(ntohs(ah->ar_op)) { + switch (ntohs(ah->ar_op)) { case ARPOP_REVREQUEST: case ARPOP_REVREPLY: etype = htons(ETHERTYPE_REVARP); diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 81145adf50cc..08b26938da5a 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ppp.c,v 1.83 2003/03/27 17:50:28 christos Exp $ */ +/* $NetBSD: if_ppp.c,v 1.84 2003/05/02 03:15:24 itojun Exp $ */ /* Id: if_ppp.c,v 1.6 1997/03/04 03:33:00 paulus Exp */ /* @@ -102,7 +102,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.83 2003/03/27 17:50:28 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.84 2003/05/02 03:15:24 itojun Exp $"); #include "ppp.h" @@ -706,7 +706,7 @@ pppsioctl(ifp, cmd, data) error = EAFNOSUPPORT; break; } - switch(ifr->ifr_addr.sa_family) { + switch (ifr->ifr_addr.sa_family) { #ifdef INET case AF_INET: break; diff --git a/sys/net/if_tokensubr.c b/sys/net/if_tokensubr.c index 247cc9241c96..b65ce37f19fb 100644 --- a/sys/net/if_tokensubr.c +++ b/sys/net/if_tokensubr.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_tokensubr.c,v 1.20 2003/05/01 02:34:20 itojun Exp $ */ +/* $NetBSD: if_tokensubr.c,v 1.21 2003/05/02 03:15:24 itojun Exp $ */ /* * Copyright (c) 1997-1999 @@ -40,7 +40,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_tokensubr.c,v 1.20 2003/05/01 02:34:20 itojun Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_tokensubr.c,v 1.21 2003/05/02 03:15:24 itojun Exp $"); #include "opt_inet.h" #include "opt_atalk.h" @@ -237,7 +237,7 @@ token_output(ifp, m0, dst, rt0) ah = mtod(m, struct arphdr *); ah->ar_hrd = htons(ARPHRD_IEEE802); - switch(ntohs(ah->ar_op)) { + switch (ntohs(ah->ar_op)) { case ARPOP_REVREQUEST: case ARPOP_REVREPLY: etype = htons(ETHERTYPE_REVARP); diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index ef355c6a105a..41bc6a14a9dd 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_tun.c,v 1.60 2003/05/01 07:52:59 itojun Exp $ */ +/* $NetBSD: if_tun.c,v 1.61 2003/05/02 03:15:24 itojun Exp $ */ /* * Copyright (c) 1988, Julian Onions @@ -15,7 +15,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.60 2003/05/01 07:52:59 itojun Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.61 2003/05/02 03:15:24 itojun Exp $"); #include "tun.h" @@ -372,7 +372,7 @@ tun_ioctl(ifp, cmd, data) simple_lock(&tp->tun_lock); s = splnet(); - switch(cmd) { + switch (cmd) { case SIOCSIFADDR: tuninit((struct tun_softc *)(ifp->if_softc)); TUNDEBUG("%s: address set\n", ifp->if_xname); diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index bdf12ac5197f..8a85594637ad 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $NetBSD: rtsock.c,v 1.58 2003/02/26 06:31:13 matt Exp $ */ +/* $NetBSD: rtsock.c,v 1.59 2003/05/02 03:15:25 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -65,7 +65,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.58 2003/02/26 06:31:13 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.59 2003/05/02 03:15:25 itojun Exp $"); #include "opt_inet.h" @@ -311,8 +311,7 @@ route_output(m, va_alist) rt = (struct rtentry *)rn; rt->rt_refcnt++; - switch(rtm->rtm_type) { - + switch (rtm->rtm_type) { case RTM_GET: report: dst = rt_key(rt); @@ -921,7 +920,7 @@ sysctl_iflist(af, w, type) continue; ifa = TAILQ_FIRST(&ifp->if_addrlist); ifpaddr = ifa->ifa_addr; - switch(type) { + switch (type) { case NET_RT_IFLIST: error = rt_msg2(RTM_IFINFO, &info, (caddr_t)0, w, &len); @@ -939,7 +938,7 @@ sysctl_iflist(af, w, type) return (error); ifpaddr = 0; if (w->w_where && w->w_tmem && w->w_needed <= 0) { - switch(type) { + switch (type) { case NET_RT_IFLIST: { struct if_msghdr *ifm; diff --git a/sys/net/slcompress.c b/sys/net/slcompress.c index 5fe0425520a3..43107f5d7f79 100644 --- a/sys/net/slcompress.c +++ b/sys/net/slcompress.c @@ -1,4 +1,4 @@ -/* $NetBSD: slcompress.c,v 1.23 2001/11/12 23:49:49 lukem Exp $ */ +/* $NetBSD: slcompress.c,v 1.24 2003/05/02 03:15:25 itojun Exp $ */ /* Id: slcompress.c,v 1.3 1996/05/24 07:04:47 paulus Exp */ /* @@ -45,7 +45,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: slcompress.c,v 1.23 2001/11/12 23:49:49 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: slcompress.c,v 1.24 2003/05/02 03:15:25 itojun Exp $"); #include #include @@ -334,7 +334,7 @@ sl_compress_tcp(m, ip, comp, compress_cid) changes |= NEW_S; } - switch(changes) { + switch (changes) { case 0: /*