KNF - return is not a function.
This commit is contained in:
parent
d5e3432796
commit
822449ac65
@ -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 @@ bpf_mcpy(dst_arg, src_arg, len)
|
||||
dst += count;
|
||||
len -= count;
|
||||
}
|
||||
return(dst_arg);
|
||||
return (dst_arg);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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 @@ arc_output(ifp, m0, dst, rt0)
|
||||
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 @@ arc_output(ifp, m0, dst, rt0)
|
||||
#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 @@ arc_defrag(ifp, m)
|
||||
/* is it the last one? */
|
||||
if (af->af_lastseen > af->af_maxflag) {
|
||||
af->af_packet = NULL;
|
||||
return(m1);
|
||||
return (m1);
|
||||
} else
|
||||
return NULL;
|
||||
}
|
||||
|
@ -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 @@ ether_output(struct ifnet *ifp, struct mbuf *m0, struct sockaddr *dst,
|
||||
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;
|
||||
|
@ -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 @@ fddi_output(ifp, m0, dst, rt0)
|
||||
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;
|
||||
|
@ -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 @@ ifmedia_ioctl(ifp, ifr, ifm, cmd)
|
||||
int error = 0, sticky;
|
||||
|
||||
if (ifp == NULL || ifr == NULL || ifm == NULL)
|
||||
return(EINVAL);
|
||||
return (EINVAL);
|
||||
|
||||
switch (cmd) {
|
||||
|
||||
|
@ -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 @@ slopen(dev, tp)
|
||||
* is no good, so we need to return
|
||||
* something else.
|
||||
*/
|
||||
return(ENOMEM); /* XXX ?! */
|
||||
return (ENOMEM); /* XXX ?! */
|
||||
}
|
||||
} else
|
||||
sc->sc_oldbufsize = sc->sc_oldbufquot = 0;
|
||||
|
@ -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 @@ sppp_output(struct ifnet *ifp, struct mbuf *m,
|
||||
m_freem(m);
|
||||
splx(s);
|
||||
if (proto == IPPROTO_TCP)
|
||||
return(EADDRNOTAVAIL);
|
||||
return (EADDRNOTAVAIL);
|
||||
else
|
||||
return(0);
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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 @@ stripopen(dev, tp)
|
||||
* 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 @@ stripoutput(ifp, m, dst, rt)
|
||||
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 @@ stripoutput(ifp, m, dst, rt)
|
||||
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 @@ strip_newpacket(sc, ptr, end)
|
||||
|
||||
/* XXX redundant copy */
|
||||
bcopy(sc->sc_rxbuf, sc->sc_pktstart, packetlen );
|
||||
return(packetlen);
|
||||
return (packetlen);
|
||||
}
|
||||
|
||||
|
||||
@ -1750,7 +1750,7 @@ StuffData(u_char *src, u_long length, u_char *dest, u_char **code_ptr_ptr)
|
||||
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(u_char *src, u_long length, u_char *dest, u_char **code_ptr_ptr)
|
||||
StuffData_FinishBlock(code + count);
|
||||
}
|
||||
|
||||
return(dest);
|
||||
return (dest);
|
||||
}
|
||||
|
||||
|
||||
@ -1878,7 +1878,7 @@ UnStuffData(u_char *src, u_char *end, u_char *dst, u_long dst_length)
|
||||
|
||||
/* Sanity check */
|
||||
if (!src || !end || !dst || !dst_length)
|
||||
return(NULL);
|
||||
return (NULL);
|
||||
|
||||
while (src < end && dst < dst_end)
|
||||
{
|
||||
@ -1887,7 +1887,7 @@ UnStuffData(u_char *src, u_char *end, u_char *dst, u_long dst_length)
|
||||
{
|
||||
case Stuff_Diff:
|
||||
if (src+1+count >= end)
|
||||
return(NULL);
|
||||
return (NULL);
|
||||
do
|
||||
{
|
||||
*dst++ = *++src ^ Stuff_Magic;
|
||||
@ -1903,7 +1903,7 @@ UnStuffData(u_char *src, u_char *end, u_char *dst, u_long dst_length)
|
||||
break;
|
||||
case Stuff_DiffZero:
|
||||
if (src+1+count >= end)
|
||||
return(NULL);
|
||||
return (NULL);
|
||||
do
|
||||
{
|
||||
*dst++ = *++src ^ Stuff_Magic;
|
||||
@ -1916,7 +1916,7 @@ UnStuffData(u_char *src, u_char *end, u_char *dst, u_long dst_length)
|
||||
break;
|
||||
case Stuff_Same:
|
||||
if (src+1 >= end)
|
||||
return(NULL);
|
||||
return (NULL);
|
||||
do
|
||||
{
|
||||
*dst++ = src[1] ^ Stuff_Magic;
|
||||
@ -1942,9 +1942,9 @@ UnStuffData(u_char *src, u_char *end, u_char *dst, u_long dst_length)
|
||||
}
|
||||
|
||||
if (dst < dst_end)
|
||||
return(NULL);
|
||||
return (NULL);
|
||||
else
|
||||
return(src);
|
||||
return (src);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user