Source-Changes-HG archive

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

[src/trunk]: src/sys/net KNF



details:   https://anonhg.NetBSD.org/src/rev/5acdf47cddbb
branches:  trunk
changeset: 546581:5acdf47cddbb
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri May 02 03:15:23 2003 +0000

description:
KNF

diffstat:

 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(-)

diffs (209 lines):

diff -r fa1dacbc7750 -r 5acdf47cddbb sys/net/if_arcsubr.c
--- a/sys/net/if_arcsubr.c      Fri May 02 02:13:16 2003 +0000
+++ b/sys/net/if_arcsubr.c      Fri May 02 03:15:23 2003 +0000
@@ -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 <sys/cdefs.h>
-__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 @@
 
                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 -r fa1dacbc7750 -r 5acdf47cddbb sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c    Fri May 02 02:13:16 2003 +0000
+++ b/sys/net/if_ethersubr.c    Fri May 02 03:15:23 2003 +0000
@@ -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 <sys/cdefs.h>
-__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 @@
                
                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 -r fa1dacbc7750 -r 5acdf47cddbb sys/net/if_ppp.c
--- a/sys/net/if_ppp.c  Fri May 02 02:13:16 2003 +0000
+++ b/sys/net/if_ppp.c  Fri May 02 03:15:23 2003 +0000
@@ -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 <sys/cdefs.h>
-__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 @@
            error = EAFNOSUPPORT;
            break;
        }
-       switch(ifr->ifr_addr.sa_family) {
+       switch (ifr->ifr_addr.sa_family) {
 #ifdef INET
        case AF_INET:
            break;
diff -r fa1dacbc7750 -r 5acdf47cddbb sys/net/if_tokensubr.c
--- a/sys/net/if_tokensubr.c    Fri May 02 02:13:16 2003 +0000
+++ b/sys/net/if_tokensubr.c    Fri May 02 03:15:23 2003 +0000
@@ -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 <sys/cdefs.h>
-__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 @@
                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 -r fa1dacbc7750 -r 5acdf47cddbb sys/net/if_tun.c
--- a/sys/net/if_tun.c  Fri May 02 02:13:16 2003 +0000
+++ b/sys/net/if_tun.c  Fri May 02 03:15:23 2003 +0000
@@ -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 <jpo%cs.nott.ac.uk@localhost>
@@ -15,7 +15,7 @@
  */
 
 #include <sys/cdefs.h>
-__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 @@
        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 -r fa1dacbc7750 -r 5acdf47cddbb sys/net/rtsock.c
--- a/sys/net/rtsock.c  Fri May 02 02:13:16 2003 +0000
+++ b/sys/net/rtsock.c  Fri May 02 03:15:23 2003 +0000
@@ -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 <sys/cdefs.h>
-__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 @@
                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 @@
                        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 @@
                        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 -r fa1dacbc7750 -r 5acdf47cddbb sys/net/slcompress.c
--- a/sys/net/slcompress.c      Fri May 02 02:13:16 2003 +0000
+++ b/sys/net/slcompress.c      Fri May 02 03:15:23 2003 +0000
@@ -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 <sys/cdefs.h>
-__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 <sys/param.h>
 #include <sys/mbuf.h>
@@ -334,7 +334,7 @@
                changes |= NEW_S;
        }
 
-       switch(changes) {
+       switch (changes) {
 
        case 0:
                /*



Home | Main Index | Thread Index | Old Index