Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet KNF + slightly ANSIfy



details:   https://anonhg.NetBSD.org/src/rev/459f54ce9868
branches:  trunk
changeset: 573638:459f54ce9868
user:      perry <perry%NetBSD.org@localhost>
date:      Thu Feb 03 22:43:34 2005 +0000

description:
KNF + slightly ANSIfy

diffstat:

 sys/netinet/ip_flow.c |  36 ++++++++++++------------------------
 1 files changed, 12 insertions(+), 24 deletions(-)

diffs (120 lines):

diff -r 5c4469e8fbfc -r 459f54ce9868 sys/netinet/ip_flow.c
--- a/sys/netinet/ip_flow.c     Thu Feb 03 22:35:11 2005 +0000
+++ b/sys/netinet/ip_flow.c     Thu Feb 03 22:43:34 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_flow.c,v 1.28 2004/04/25 16:42:42 simonb Exp $      */
+/*     $NetBSD: ip_flow.c,v 1.29 2005/02/03 22:43:34 perry Exp $       */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_flow.c,v 1.28 2004/04/25 16:42:42 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_flow.c,v 1.29 2005/02/03 22:43:34 perry Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -94,10 +94,7 @@
 int ip_maxflows = IPFLOW_MAX;
 
 static unsigned
-ipflow_hash(
-       struct in_addr dst,
-       struct in_addr src,
-       unsigned tos)
+ipflow_hash(struct in_addr dst,        struct in_addr src, unsigned tos)
 {
        unsigned hash = tos;
        int idx;
@@ -107,8 +104,7 @@
 }
 
 static struct ipflow *
-ipflow_lookup(
-       const struct ip *ip)
+ipflow_lookup(const struct ip *ip)
 {
        unsigned hash;
        struct ipflow *ipf;
@@ -127,7 +123,7 @@
 }
 
 void
-ipflow_init()
+ipflow_init(void)
 {
        int i;
 
@@ -137,8 +133,7 @@
 }
 
 int
-ipflow_fastforward(
-       struct mbuf *m)
+ipflow_fastforward(struct mbuf *m)
 {
        struct ip *ip, ip_store;
        struct ipflow *ipf;
@@ -273,8 +268,7 @@
 }
 
 static void
-ipflow_addstats(
-       struct ipflow *ipf)
+ipflow_addstats(struct ipflow *ipf)
 {
        ipf->ipf_ro.ro_rt->rt_use += ipf->ipf_uses;
        ipstat.ips_cantforward += ipf->ipf_errors + ipf->ipf_dropped;
@@ -283,8 +277,7 @@
 }
 
 static void
-ipflow_free(
-       struct ipflow *ipf)
+ipflow_free(struct ipflow *ipf)
 {
        int s;
        /*
@@ -302,8 +295,7 @@
 }
 
 struct ipflow *
-ipflow_reap(
-       int just_one)
+ipflow_reap(int just_one)
 {
        while (just_one || ipflow_inuse > ip_maxflows) {
                struct ipflow *ipf, *maybe_ipf = NULL;
@@ -350,8 +342,7 @@
 }
 
 void
-ipflow_slowtimo(
-       void)
+ipflow_slowtimo(void)
 {
        struct ipflow *ipf, *next_ipf;
 
@@ -372,9 +363,7 @@
 }
 
 void
-ipflow_create(
-       const struct route *ro,
-       struct mbuf *m)
+ipflow_create(const struct route *ro, struct mbuf *m)
 {
        const struct ip *const ip = mtod(m, struct ip *);
        struct ipflow *ipf;
@@ -432,8 +421,7 @@
 }
 
 void
-ipflow_invalidate_all(
-       void)
+ipflow_invalidate_all(void)
 {
        struct ipflow *ipf, *next_ipf;
        int s;



Home | Main Index | Thread Index | Old Index