summaryrefslogtreecommitdiffstats
path: root/sys/dev
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/dev
parent3f1e0bcedafae9e29d51c901f9ebfb610cc589ea (diff)
downloadFreeBSD-src-ef17fed2cc72e5d782f3687c4b4d854939739c41.zip
FreeBSD-src-ef17fed2cc72e5d782f3687c4b4d854939739c41.tar.gz
Be consistent about funtions being static.
Spotte by: FlexeLint.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/rc/rc.c6
-rw-r--r--sys/dev/speaker/spkr.c8
2 files changed, 8 insertions, 6 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;
OpenPOWER on IntegriCloud