summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-16 10:16:17 +0000
committerphk <phk@FreeBSD.org>2002-10-16 10:16:17 +0000
commitef17fed2cc72e5d782f3687c4b4d854939739c41 (patch)
treefe2b7308b152af324f193424b37bb9ee5a1a0812 /sys
parent3f1e0bcedafae9e29d51c901f9ebfb610cc589ea (diff)
downloadFreeBSD-src-ef17fed2cc72e5d782f3687c4b4d854939739c41.zip
FreeBSD-src-ef17fed2cc72e5d782f3687c4b4d854939739c41.tar.gz
Be consistent about funtions being static.
Spotte by: FlexeLint.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/rc/rc.c6
-rw-r--r--sys/dev/speaker/spkr.c8
-rw-r--r--sys/i386/isa/cx.c15
-rw-r--r--sys/i386/isa/if_rdp.c2
-rw-r--r--sys/i386/isa/loran.c4
-rw-r--r--sys/i386/isa/rc.c6
-rw-r--r--sys/i386/isa/spkr.c8
-rw-r--r--sys/i386/isa/tw.c15
8 files changed, 39 insertions, 25 deletions
diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c
index de6ea07..c171949 100644
--- a/sys/dev/rc/rc.c
+++ b/sys/dev/rc/rc.c
@@ -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;
{
diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c
index 67084b6..522e6c6 100644
--- a/sys/dev/speaker/spkr.c
+++ b/sys/dev/speaker/spkr.c
@@ -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;
diff --git a/sys/i386/isa/cx.c b/sys/i386/isa/cx.c
index 73ab00b..e902f84 100644
--- a/sys/i386/isa/cx.c
+++ b/sys/i386/isa/cx.c
@@ -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;
diff --git a/sys/i386/isa/if_rdp.c b/sys/i386/isa/if_rdp.c
index 1611ab8..7e5b214 100644
--- a/sys/i386/isa/if_rdp.c
+++ b/sys/i386/isa/if_rdp.c
@@ -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;
diff --git a/sys/i386/isa/loran.c b/sys/i386/isa/loran.c
index 03586a0..59c4b6e 100644
--- a/sys/i386/isa/loran.c
+++ b/sys/i386/isa/loran.c
@@ -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;
diff --git a/sys/i386/isa/rc.c b/sys/i386/isa/rc.c
index de6ea07..c171949 100644
--- a/sys/i386/isa/rc.c
+++ b/sys/i386/isa/rc.c
@@ -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;
{
diff --git a/sys/i386/isa/spkr.c b/sys/i386/isa/spkr.c
index 67084b6..522e6c6 100644
--- a/sys/i386/isa/spkr.c
+++ b/sys/i386/isa/spkr.c
@@ -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;
diff --git a/sys/i386/isa/tw.c b/sys/i386/isa/tw.c
index accacce..f922813 100644
--- a/sys/i386/isa/tw.c
+++ b/sys/i386/isa/tw.c
@@ -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;
OpenPOWER on IntegriCloud