Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys KNF - return is not a function. sync w/kame.
details: https://anonhg.NetBSD.org/src/rev/4c3b16d37110
branches: trunk
changeset: 536197:4c3b16d37110
user: itojun <itojun%NetBSD.org@localhost>
date: Wed Sep 11 02:46:42 2002 +0000
description:
KNF - return is not a function. sync w/kame.
diffstat:
sys/netinet/if_atm.c | 8 +-
sys/netinet/in.c | 8 +-
sys/netinet/in_gif.c | 6 +-
sys/netinet/ip_gre.c | 12 ++--
sys/netinet/ip_input.c | 8 +-
sys/netinet/ip_output.c | 6 +-
sys/netinet6/ah_output.c | 8 +-
sys/netinet6/frag6.c | 8 +-
sys/netinet6/icmp6.c | 44 +++++++-------
sys/netinet6/in6.c | 128 ++++++++++++++++++++++----------------------
sys/netinet6/in6_gif.c | 6 +-
sys/netinet6/in6_ifattach.c | 12 ++--
sys/netinet6/in6_pcb.c | 44 +++++++-------
sys/netinet6/in6_src.c | 44 +++++++-------
sys/netinet6/ip6_mroute.c | 28 ++++----
sys/netinet6/ip6_output.c | 102 +++++++++++++++++-----------------
sys/netinet6/ipsec.c | 8 +-
sys/netinet6/nd6.c | 64 +++++++++++-----------
sys/netinet6/nd6_rtr.c | 56 +++++++++---------
sys/netinet6/raw_ip6.c | 10 +-
sys/netinet6/route6.c | 22 +++---
sys/netinet6/udp6_output.c | 6 +-
sys/netinet6/udp6_usrreq.c | 14 ++--
sys/netkey/key.c | 14 ++--
sys/netkey/keysock.c | 8 +-
25 files changed, 337 insertions(+), 337 deletions(-)
diffs (truncated from 2688 to 300 lines):
diff -r f46e567fee65 -r 4c3b16d37110 sys/netinet/if_atm.c
--- a/sys/netinet/if_atm.c Wed Sep 11 02:41:19 2002 +0000
+++ b/sys/netinet/if_atm.c Wed Sep 11 02:46:42 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_atm.c,v 1.15 2002/06/09 16:33:37 itojun Exp $ */
+/* $NetBSD: if_atm.c,v 1.16 2002/09/11 02:46:42 itojun Exp $ */
/*
*
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_atm.c,v 1.15 2002/06/09 16:33:37 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_atm.c,v 1.16 2002/09/11 02:46:42 itojun Exp $");
#include "opt_inet.h"
#include "opt_natm.h"
@@ -270,7 +270,7 @@
if (sdl->sdl_family == AF_LINK && sdl->sdl_alen == sizeof(*desten)) {
bcopy(LLADDR(sdl), desten, sdl->sdl_alen);
- return(1); /* ok, go for it! */
+ return (1); /* ok, go for it! */
}
/*
@@ -281,6 +281,6 @@
bad:
m_freem(m);
- return(0);
+ return (0);
}
#endif /* INET */
diff -r f46e567fee65 -r 4c3b16d37110 sys/netinet/in.c
--- a/sys/netinet/in.c Wed Sep 11 02:41:19 2002 +0000
+++ b/sys/netinet/in.c Wed Sep 11 02:46:42 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in.c,v 1.79 2002/09/04 03:45:01 itojun Exp $ */
+/* $NetBSD: in.c,v 1.80 2002/09/11 02:46:43 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.79 2002/09/04 03:45:01 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.80 2002/09/11 02:46:43 itojun Exp $");
#include "opt_inet.h"
#include "opt_inet_conf.h"
@@ -329,7 +329,7 @@
case SIOCALIFADDR:
case SIOCDLIFADDR:
if (p == 0 || (error = suser(p->p_ucred, &p->p_acflag)))
- return(EPERM);
+ return (EPERM);
/*fall through*/
case SIOCGLIFADDR:
if (!ifp)
@@ -535,7 +535,7 @@
return (EOPNOTSUPP);
error = (*ifp->if_ioctl)(ifp, cmd, data);
in_setmaxmtu();
- return(error);
+ return (error);
}
return (0);
}
diff -r f46e567fee65 -r 4c3b16d37110 sys/netinet/in_gif.c
--- a/sys/netinet/in_gif.c Wed Sep 11 02:41:19 2002 +0000
+++ b/sys/netinet/in_gif.c Wed Sep 11 02:46:42 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in_gif.c,v 1.29 2002/08/14 00:23:29 itojun Exp $ */
+/* $NetBSD: in_gif.c,v 1.30 2002/09/11 02:46:43 itojun Exp $ */
/* $KAME: in_gif.c,v 1.66 2001/07/29 04:46:09 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.29 2002/08/14 00:23:29 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.30 2002/09/11 02:46:43 itojun Exp $");
#include "opt_inet.h"
#include "opt_iso.h"
@@ -212,7 +212,7 @@
}
error = ip_output(m, NULL, &sc->gif_ro, 0, NULL);
- return(error);
+ return (error);
}
void
diff -r f46e567fee65 -r 4c3b16d37110 sys/netinet/ip_gre.c
--- a/sys/netinet/ip_gre.c Wed Sep 11 02:41:19 2002 +0000
+++ b/sys/netinet/ip_gre.c Wed Sep 11 02:46:42 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_gre.c,v 1.21 2002/08/14 00:23:30 itojun Exp $ */
+/* $NetBSD: ip_gre.c,v 1.22 2002/09/11 02:46:43 itojun Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_gre.c,v 1.21 2002/08/14 00:23:30 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_gre.c,v 1.22 2002/09/11 02:46:43 itojun Exp $");
#include "gre.h"
#if NGRE > 0
@@ -177,7 +177,7 @@
hlen += 4;
/* We don't support routing fields (variable length) */
if (flags & GRE_RP)
- return(0);
+ return (0);
if (flags & GRE_KP)
hlen += 4;
if (flags & GRE_SP)
@@ -202,12 +202,12 @@
case ETHERTYPE_IPV6:
/* FALLTHROUGH */
default: /* others not yet supported */
- return(0);
+ return (0);
}
break;
default:
/* others not yet supported */
- return(0);
+ return (0);
}
m->m_data += hlen;
@@ -238,7 +238,7 @@
}
splx(s);
- return(1); /* packet is done, no further processing needed */
+ return (1); /* packet is done, no further processing needed */
}
/*
diff -r f46e567fee65 -r 4c3b16d37110 sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c Wed Sep 11 02:41:19 2002 +0000
+++ b/sys/netinet/ip_input.c Wed Sep 11 02:46:42 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_input.c,v 1.156 2002/09/11 02:41:19 itojun Exp $ */
+/* $NetBSD: ip_input.c,v 1.157 2002/09/11 02:46:43 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.156 2002/09/11 02:41:19 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.157 2002/09/11 02:46:43 itojun Exp $");
#include "opt_gateway.h"
#include "opt_pfil_hooks.h"
@@ -1889,13 +1889,13 @@
&hostzeroisbroadcast));
#if NGIF > 0
case IPCTL_GIF_TTL:
- return(sysctl_int(oldp, oldlenp, newp, newlen,
+ return (sysctl_int(oldp, oldlenp, newp, newlen,
&ip_gif_ttl));
#endif
#if NGRE > 0
case IPCTL_GRE_TTL:
- return(sysctl_int(oldp, oldlenp, newp, newlen,
+ return (sysctl_int(oldp, oldlenp, newp, newlen,
&ip_gre_ttl));
#endif
diff -r f46e567fee65 -r 4c3b16d37110 sys/netinet/ip_output.c
--- a/sys/netinet/ip_output.c Wed Sep 11 02:41:19 2002 +0000
+++ b/sys/netinet/ip_output.c Wed Sep 11 02:46:42 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_output.c,v 1.100 2002/08/14 00:23:32 itojun Exp $ */
+/* $NetBSD: ip_output.c,v 1.101 2002/09/11 02:46:43 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.100 2002/08/14 00:23:32 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.101 2002/09/11 02:46:43 itojun Exp $");
#include "opt_pfil_hooks.h"
#include "opt_ipsec.h"
@@ -825,7 +825,7 @@
struct mbuf *m = inp->inp_options;
if (m && m->m_len > offsetof(struct ipoption, ipopt_dst))
- return(m->m_len - offsetof(struct ipoption, ipopt_dst));
+ return (m->m_len - offsetof(struct ipoption, ipopt_dst));
else
return 0;
}
diff -r f46e567fee65 -r 4c3b16d37110 sys/netinet6/ah_output.c
--- a/sys/netinet6/ah_output.c Wed Sep 11 02:41:19 2002 +0000
+++ b/sys/netinet6/ah_output.c Wed Sep 11 02:46:42 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ah_output.c,v 1.18 2002/08/09 07:01:21 itojun Exp $ */
+/* $NetBSD: ah_output.c,v 1.19 2002/09/11 02:46:44 itojun Exp $ */
/* $KAME: ah_output.c,v 1.31 2001/07/26 06:53:15 jinmei Exp $ */
/*
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ah_output.c,v 1.18 2002/08/09 07:01:21 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ah_output.c,v 1.19 2002/09/11 02:46:44 itojun Exp $");
#include "opt_inet.h"
@@ -345,7 +345,7 @@
ahlen = plen + sizeof(struct newah);
}
- return(ahlen);
+ return (ahlen);
}
#ifdef INET6
@@ -493,7 +493,7 @@
}
ipsec6stat.out_ahhist[sav->alg_auth]++;
- return(error);
+ return (error);
}
#endif
diff -r f46e567fee65 -r 4c3b16d37110 sys/netinet6/frag6.c
--- a/sys/netinet6/frag6.c Wed Sep 11 02:41:19 2002 +0000
+++ b/sys/netinet6/frag6.c Wed Sep 11 02:46:42 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: frag6.c,v 1.21 2002/09/11 02:41:23 itojun Exp $ */
+/* $NetBSD: frag6.c,v 1.22 2002/09/11 02:46:44 itojun Exp $ */
/* $KAME: frag6.c,v 1.40 2002/05/27 21:40:31 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: frag6.c,v 1.21 2002/09/11 02:41:23 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: frag6.c,v 1.22 2002/09/11 02:46:44 itojun Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -340,14 +340,14 @@
offset - sizeof(struct ip6_frag) +
offsetof(struct ip6_frag, ip6f_offlg));
IP6Q_UNLOCK();
- return(IPPROTO_DONE);
+ return (IPPROTO_DONE);
}
} else if (fragoff + frgpartlen > IPV6_MAXPACKET) {
icmp6_error(m, ICMP6_PARAM_PROB, ICMP6_PARAMPROB_HEADER,
offset - sizeof(struct ip6_frag) +
offsetof(struct ip6_frag, ip6f_offlg));
IP6Q_UNLOCK();
- return(IPPROTO_DONE);
+ return (IPPROTO_DONE);
}
/*
* If it's the first fragment, do the above check for each
diff -r f46e567fee65 -r 4c3b16d37110 sys/netinet6/icmp6.c
--- a/sys/netinet6/icmp6.c Wed Sep 11 02:41:19 2002 +0000
+++ b/sys/netinet6/icmp6.c Wed Sep 11 02:46:42 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: icmp6.c,v 1.85 2002/07/30 23:27:15 itojun Exp $ */
+/* $NetBSD: icmp6.c,v 1.86 2002/09/11 02:46:44 itojun Exp $ */
/* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
/*
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.85 2002/07/30 23:27:15 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.86 2002/09/11 02:46:44 itojun Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -892,7 +892,7 @@
Home |
Main Index |
Thread Index |
Old Index