Be consistent about functions being static.

Spotted by:	FlexeLint
This commit is contained in:
Poul-Henning Kamp 2002-10-16 10:45:53 +00:00
parent c3053131ca
commit 08b29601a0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105228
7 changed files with 12 additions and 12 deletions

View File

@ -468,7 +468,7 @@ bsd_decomp_init(state, options, opt_len, unit, hdrlen, mru, debug)
* One change from the BSD compress command is that when the
* code size expands, we do not output a bunch of padding.
*/
int /* new slen */
static int /* new slen */
bsd_compress(state, mret, mp, slen, maxolen)
void *state;
struct mbuf **mret; /* return compressed mbuf chain here */
@ -815,7 +815,7 @@ bsd_incomp(state, dmsg)
* bug, so we return DECOMP_FATALERROR for them in order to turn off
* compression, even though they are detected by inspecting the input.
*/
int
static int
bsd_decompress(state, cmp, dmpp)
void *state;
struct mbuf *cmp, **dmpp;

View File

@ -353,7 +353,7 @@ arc_frag_next(ifp)
* NULL. frees imcoming mbuf as necessary.
*/
__inline struct mbuf *
static __inline struct mbuf *
arc_defrag(ifp, m)
struct ifnet *ifp;
struct mbuf *m;

View File

@ -379,7 +379,7 @@ slopen(dev, tp)
return (0);
}
void
static void
sldestroy(struct sl_softc *sc)
{
bpfdetach(&sc->sc_if);

View File

@ -2075,7 +2075,7 @@ sppp_to_event(const struct cp *cp, struct sppp *sp)
* Change the state of a control protocol in the state automaton.
* Takes care of starting/stopping the restart timer.
*/
void
static void
sppp_cp_change_state(const struct cp *cp, struct sppp *sp, int newstate)
{
sp->state[cp->protoidx] = newstate;
@ -3876,7 +3876,7 @@ static void sppp_ipv6cp_scr(struct sppp *sp)
/*
* Handle incoming CHAP packets.
*/
void
static void
sppp_chap_input(struct sppp *sp, struct mbuf *m)
{
STDDCL;

View File

@ -535,7 +535,7 @@ tapifinit(xtp)
*
* Process an ioctl request on network interface
*/
int
static int
tapifioctl(ifp, cmd, data)
struct ifnet *ifp;
u_long cmd;

View File

@ -118,7 +118,7 @@ struct compressor ppp_deflate_draft = {
/*
* Space allocation and freeing routines for use by zlib routines.
*/
void *
static void *
z_alloc(notused, items, size)
void *notused;
u_int items, size;
@ -129,7 +129,7 @@ z_alloc(notused, items, size)
return ptr;
}
void
static void
z_free(notused, ptr)
void *notused;
void *ptr;
@ -223,7 +223,7 @@ z_comp_reset(arg)
deflateReset(&state->strm);
}
int
static int
z_compress(arg, mret, mp, orig_len, maxolen)
void *arg;
struct mbuf **mret; /* compressed packet (out) */
@ -469,7 +469,7 @@ z_decomp_reset(arg)
* bug, so we return DECOMP_FATALERROR for them in order to turn off
* compression, even though they are detected by inspecting the input.
*/
int
static int
z_decompress(arg, mi, mop)
void *arg;
struct mbuf *mi, **mop;

View File

@ -752,7 +752,7 @@ pppasyncctlp(sc)
* called later at splsoftnet.
* Called at spltty or higher.
*/
int
static int
pppstart(tp)
register struct tty *tp;
{