Be consistent about funtions being static.

Spotte by:	FlexeLint.
This commit is contained in:
Poul-Henning Kamp 2002-10-16 10:16:17 +00:00
parent 3899c8a38f
commit 3412120f03
8 changed files with 39 additions and 25 deletions

View File

@ -562,7 +562,8 @@ out:
}
/* Handle delayed events. */
void rcpoll(void *arg)
static void
rcpoll(void *arg)
{
register struct rc_chans *rc;
register struct rc_softc *rcb;
@ -1218,7 +1219,8 @@ int bits, cmd;
}
/* Test the board. */
int rc_test(nec, unit)
static int
rc_test(nec, unit)
register int nec;
int unit;
{

View File

@ -459,7 +459,7 @@ playstring(cp, slen)
static int spkr_active = FALSE; /* exclusion flag */
static char *spkr_inbuf; /* incoming buf */
int
static int
spkropen(dev, flags, fmt, td)
dev_t dev;
int flags;
@ -486,7 +486,7 @@ spkropen(dev, flags, fmt, td)
}
}
int
static int
spkrwrite(dev, uio, ioflag)
dev_t dev;
struct uio *uio;
@ -518,7 +518,7 @@ spkrwrite(dev, uio, ioflag)
}
}
int
static int
spkrclose(dev, flags, fmt, td)
dev_t dev;
int flags;
@ -541,7 +541,7 @@ spkrclose(dev, flags, fmt, td)
}
}
int
static int
spkrioctl(dev, cmd, cmdarg, flags, td)
dev_t dev;
unsigned long cmd;

View File

@ -93,7 +93,8 @@ static void cxoproc (struct tty *tp);
static void cxstop (struct tty *tp, int flag);
static int cxparam (struct tty *tp, struct termios *t);
int cxopen (dev_t dev, int flag, int mode, struct thread *td)
static int
cxopen (dev_t dev, int flag, int mode, struct thread *td)
{
int unit = UNIT (dev);
cx_chan_t *c = cxchan[unit];
@ -198,7 +199,8 @@ int cxopen (dev_t dev, int flag, int mode, struct thread *td)
return (error);
}
int cxclose (dev_t dev, int flag, int mode, struct thread *td)
static int
cxclose (dev_t dev, int flag, int mode, struct thread *td)
{
int unit = UNIT (dev);
cx_chan_t *c = cxchan[unit];
@ -234,7 +236,8 @@ int cxclose (dev_t dev, int flag, int mode, struct thread *td)
return (0);
}
int cxioctl (dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
static int
cxioctl (dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
{
int unit = UNIT (dev);
cx_chan_t *c, *m;
@ -514,7 +517,8 @@ cxout (cx_chan_t *c, char b)
}
}
void cxoproc (struct tty *tp)
static void
cxoproc (struct tty *tp)
{
int unit = UNIT (tp->t_dev);
cx_chan_t *c = cxchan[unit];
@ -660,7 +664,8 @@ cxparam (struct tty *tp, struct termios *t)
/*
* Stop output on a line
*/
void cxstop (struct tty *tp, int flag)
static void
cxstop (struct tty *tp, int flag)
{
cx_chan_t *c = cxchan[UNIT(tp->t_dev)];
unsigned short port = c->chip->port;

View File

@ -884,7 +884,7 @@ rdp_ioctl(struct ifnet *ifp, IOCTL_CMD_T command, caddr_t data)
/*
* External interrupt service routine.
*/
void
static void
rdpintr(int unit)
{
struct rdp_softc *sc = rdp_softc + unit;

View File

@ -239,7 +239,7 @@ extern struct timecounter loran_timecounter;
/**********************************************************************/
int
static int
loranprobe(struct isa_device *dvp)
{
static int once;
@ -275,7 +275,7 @@ init_tgc(void)
outb(TGC, TG_LOADARM+0x1f); /* let the good times roll */
}
int
static int
loranattach(struct isa_device *isdp)
{
int i;

View File

@ -562,7 +562,8 @@ out:
}
/* Handle delayed events. */
void rcpoll(void *arg)
static void
rcpoll(void *arg)
{
register struct rc_chans *rc;
register struct rc_softc *rcb;
@ -1218,7 +1219,8 @@ int bits, cmd;
}
/* Test the board. */
int rc_test(nec, unit)
static int
rc_test(nec, unit)
register int nec;
int unit;
{

View File

@ -459,7 +459,7 @@ playstring(cp, slen)
static int spkr_active = FALSE; /* exclusion flag */
static char *spkr_inbuf; /* incoming buf */
int
static int
spkropen(dev, flags, fmt, td)
dev_t dev;
int flags;
@ -486,7 +486,7 @@ spkropen(dev, flags, fmt, td)
}
}
int
static int
spkrwrite(dev, uio, ioflag)
dev_t dev;
struct uio *uio;
@ -518,7 +518,7 @@ spkrwrite(dev, uio, ioflag)
}
}
int
static int
spkrclose(dev, flags, fmt, td)
dev_t dev;
int flags;
@ -541,7 +541,7 @@ spkrclose(dev, flags, fmt, td)
}
}
int
static int
spkrioctl(dev, cmd, cmdarg, flags, td)
dev_t dev;
unsigned long cmd;

View File

@ -415,7 +415,8 @@ static int twattach(idp)
return (1);
}
int twopen(dev, flag, mode, td)
static int
twopen(dev, flag, mode, td)
dev_t dev;
int flag;
int mode;
@ -435,7 +436,8 @@ int twopen(dev, flag, mode, td)
return(0);
}
int twclose(dev, flag, mode, td)
static int
twclose(dev, flag, mode, td)
dev_t dev;
int flag;
int mode;
@ -451,7 +453,8 @@ int twclose(dev, flag, mode, td)
return(0);
}
int twread(dev, uio, ioflag)
static int
twread(dev, uio, ioflag)
dev_t dev;
struct uio *uio;
int ioflag;
@ -469,7 +472,8 @@ int twread(dev, uio, ioflag)
return(error);
}
int twwrite(dev, uio, ioflag)
static int
twwrite(dev, uio, ioflag)
dev_t dev;
struct uio *uio;
int ioflag;
@ -541,7 +545,8 @@ int twwrite(dev, uio, ioflag)
* Determine if there is data available for reading
*/
int twpoll(dev, events, td)
static int
twpoll(dev, events, td)
dev_t dev;
int events;
struct thread *td;