Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net KNF - return is not a function.
details: https://anonhg.NetBSD.org/src/rev/3fb222cce3d8
branches: trunk
changeset: 536204:3fb222cce3d8
user: itojun <itojun%NetBSD.org@localhost>
date: Wed Sep 11 05:36:26 2002 +0000
description:
KNF - return is not a function.
diffstat:
sys/net/bpf.c | 6 +++---
sys/net/if_arcsubr.c | 10 +++++-----
sys/net/if_ethersubr.c | 6 +++---
sys/net/if_fddisubr.c | 6 +++---
sys/net/if_media.c | 6 +++---
sys/net/if_sl.c | 6 +++---
sys/net/if_spppsubr.c | 8 ++++----
sys/net/if_strip.c | 28 ++++++++++++++--------------
8 files changed, 38 insertions(+), 38 deletions(-)
diffs (truncated from 330 to 300 lines):
diff -r 270484e5b4e5 -r 3fb222cce3d8 sys/net/bpf.c
--- a/sys/net/bpf.c Wed Sep 11 04:17:01 2002 +0000
+++ b/sys/net/bpf.c Wed Sep 11 05:36:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bpf.c,v 1.67 2002/09/06 13:18:43 gehenna Exp $ */
+/* $NetBSD: bpf.c,v 1.68 2002/09/11 05:36:26 itojun Exp $ */
/*
* Copyright (c) 1990, 1991, 1993
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.67 2002/09/06 13:18:43 gehenna Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.68 2002/09/11 05:36:26 itojun Exp $");
#include "bpfilter.h"
@@ -1114,7 +1114,7 @@
dst += count;
len -= count;
}
- return(dst_arg);
+ return (dst_arg);
}
/*
diff -r 270484e5b4e5 -r 3fb222cce3d8 sys/net/if_arcsubr.c
--- a/sys/net/if_arcsubr.c Wed Sep 11 04:17:01 2002 +0000
+++ b/sys/net/if_arcsubr.c Wed Sep 11 05:36:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_arcsubr.c,v 1.39 2002/03/05 04:12:59 itojun Exp $ */
+/* $NetBSD: if_arcsubr.c,v 1.40 2002/09/11 05:36:26 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.39 2002/03/05 04:12:59 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arcsubr.c,v 1.40 2002/09/11 05:36:26 itojun Exp $");
#include "opt_inet.h"
@@ -135,7 +135,7 @@
ALTQ_DECL(struct altq_pktattr pktattr;)
if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING))
- return(ENETDOWN); /* m, m1 aren't initialized yet */
+ return (ENETDOWN); /* m, m1 aren't initialized yet */
error = newencoding = 0;
ac = (struct arccom *)ifp;
@@ -249,7 +249,7 @@
#ifdef INET6
case AF_INET6:
if (!nd6_storelladdr(ifp, rt, m, dst, (u_char *)&adst))
- return(0); /* it must be impossible, but... */
+ return (0); /* it must be impossible, but... */
atype = htons(ARCTYPE_INET6);
newencoding = 1;
break;
@@ -518,7 +518,7 @@
/* is it the last one? */
if (af->af_lastseen > af->af_maxflag) {
af->af_packet = NULL;
- return(m1);
+ return (m1);
} else
return NULL;
}
diff -r 270484e5b4e5 -r 3fb222cce3d8 sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c Wed Sep 11 04:17:01 2002 +0000
+++ b/sys/net/if_ethersubr.c Wed Sep 11 05:36:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ethersubr.c,v 1.98 2002/08/26 01:39:39 thorpej Exp $ */
+/* $NetBSD: if_ethersubr.c,v 1.99 2002/09/11 05:36:26 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.98 2002/08/26 01:39:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.99 2002/09/11 05:36:26 itojun Exp $");
#include "opt_inet.h"
#include "opt_atalk.h"
@@ -296,7 +296,7 @@
case AF_INET6:
if (!nd6_storelladdr(ifp, rt, m, dst, (u_char *)edst)){
/* something bad happened */
- return(0);
+ return (0);
}
etype = htons(ETHERTYPE_IPV6);
break;
diff -r 270484e5b4e5 -r 3fb222cce3d8 sys/net/if_fddisubr.c
--- a/sys/net/if_fddisubr.c Wed Sep 11 04:17:01 2002 +0000
+++ b/sys/net/if_fddisubr.c Wed Sep 11 05:36:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_fddisubr.c,v 1.44 2002/06/04 10:00:24 itojun Exp $ */
+/* $NetBSD: if_fddisubr.c,v 1.45 2002/09/11 05:36:26 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_fddisubr.c,v 1.44 2002/06/04 10:00:24 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_fddisubr.c,v 1.45 2002/09/11 05:36:26 itojun Exp $");
#include "opt_inet.h"
#include "opt_atalk.h"
@@ -292,7 +292,7 @@
case AF_INET6:
if (!nd6_storelladdr(ifp, rt, m, dst, (u_char *)edst)){
/* something bad happened */
- return(0);
+ return (0);
}
etype = htons(ETHERTYPE_IPV6);
break;
diff -r 270484e5b4e5 -r 3fb222cce3d8 sys/net/if_media.c
--- a/sys/net/if_media.c Wed Sep 11 04:17:01 2002 +0000
+++ b/sys/net/if_media.c Wed Sep 11 05:36:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_media.c,v 1.15 2001/11/12 23:49:40 lukem Exp $ */
+/* $NetBSD: if_media.c,v 1.16 2002/09/11 05:36:27 itojun Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -83,7 +83,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_media.c,v 1.15 2001/11/12 23:49:40 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_media.c,v 1.16 2002/09/11 05:36:27 itojun Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -228,7 +228,7 @@
int error = 0, sticky;
if (ifp == NULL || ifr == NULL || ifm == NULL)
- return(EINVAL);
+ return (EINVAL);
switch (cmd) {
diff -r 270484e5b4e5 -r 3fb222cce3d8 sys/net/if_sl.c
--- a/sys/net/if_sl.c Wed Sep 11 04:17:01 2002 +0000
+++ b/sys/net/if_sl.c Wed Sep 11 05:36:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sl.c,v 1.80 2002/03/17 19:41:10 atatat Exp $ */
+/* $NetBSD: if_sl.c,v 1.81 2002/09/11 05:36:27 itojun Exp $ */
/*
* Copyright (c) 1987, 1989, 1992, 1993
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_sl.c,v 1.80 2002/03/17 19:41:10 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sl.c,v 1.81 2002/09/11 05:36:27 itojun Exp $");
#include "sl.h"
#if NSL > 0
@@ -313,7 +313,7 @@
* is no good, so we need to return
* something else.
*/
- return(ENOMEM); /* XXX ?! */
+ return (ENOMEM); /* XXX ?! */
}
} else
sc->sc_oldbufsize = sc->sc_oldbufquot = 0;
diff -r 270484e5b4e5 -r 3fb222cce3d8 sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c Wed Sep 11 04:17:01 2002 +0000
+++ b/sys/net/if_spppsubr.c Wed Sep 11 05:36:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_spppsubr.c,v 1.57 2002/09/01 18:54:12 martin Exp $ */
+/* $NetBSD: if_spppsubr.c,v 1.58 2002/09/11 05:36:27 itojun Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.57 2002/09/01 18:54:12 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.58 2002/09/11 05:36:27 itojun Exp $");
#include "opt_inet.h"
#include "opt_ipx.h"
@@ -739,9 +739,9 @@
m_freem(m);
splx(s);
if (proto == IPPROTO_TCP)
- return(EADDRNOTAVAIL);
+ return (EADDRNOTAVAIL);
else
- return(0);
+ return (0);
}
/*
diff -r 270484e5b4e5 -r 3fb222cce3d8 sys/net/if_strip.c
--- a/sys/net/if_strip.c Wed Sep 11 04:17:01 2002 +0000
+++ b/sys/net/if_strip.c Wed Sep 11 05:36:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_strip.c,v 1.44 2002/03/17 19:41:11 atatat Exp $ */
+/* $NetBSD: if_strip.c,v 1.45 2002/09/11 05:36:28 itojun Exp $ */
/* from: NetBSD: if_sl.c,v 1.38 1996/02/13 22:00:23 christos Exp $ */
/*
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_strip.c,v 1.44 2002/03/17 19:41:11 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_strip.c,v 1.45 2002/09/11 05:36:28 itojun Exp $");
#include "strip.h"
@@ -490,7 +490,7 @@
* is no good, so we need to return
* something else.
*/
- return(ENOMEM);
+ return (ENOMEM);
}
} else
sc->sc_oldbufsize = sc->sc_oldbufquot = 0;
@@ -757,7 +757,7 @@
DPRINTF(("strip: could not arp starmode addr %x\n",
((struct sockaddr_in *)dst)->sin_addr.s_addr));
m_freem(m);
- return(EHOSTUNREACH);
+ return (EHOSTUNREACH);
}
/*bcopy(LLADDR(SDL(rt->rt_gateway)), dldst, ifp->if_addrlen);*/
dldst = LLADDR(SDL(rt->rt_gateway));
@@ -801,7 +801,7 @@
M_PREPEND(m, sizeof(struct st_header), M_DONTWAIT);
if (m == 0) {
DPRINTF(("strip: could not prepend starmode header\n"));
- return(ENOBUFS);
+ return (ENOBUFS);
}
/*
@@ -1698,7 +1698,7 @@
/* XXX redundant copy */
bcopy(sc->sc_rxbuf, sc->sc_pktstart, packetlen );
- return(packetlen);
+ return (packetlen);
}
@@ -1750,7 +1750,7 @@
u_char *code_ptr = *code_ptr_ptr;
u_char code = Stuff_NoCode, count = 0;
- if (!length) return(dest);
+ if (!length) return (dest);
if (code_ptr) { /* Recover state from last call, if applicable */
code = (*code_ptr ^ Stuff_Magic) & Stuff_CodeMask;
@@ -1844,7 +1844,7 @@
StuffData_FinishBlock(code + count);
}
- return(dest);
+ return (dest);
}
@@ -1878,7 +1878,7 @@
/* Sanity check */
if (!src || !end || !dst || !dst_length)
- return(NULL);
+ return (NULL);
while (src < end && dst < dst_end)
{
@@ -1887,7 +1887,7 @@
{
case Stuff_Diff:
if (src+1+count >= end)
- return(NULL);
+ return (NULL);
do
{
*dst++ = *++src ^ Stuff_Magic;
Home |
Main Index |
Thread Index |
Old Index