diff options
author | phk <phk@FreeBSD.org> | 2002-09-28 17:15:38 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-09-28 17:15:38 +0000 |
commit | 1dfc2c167f0c0ee95c98088b2c05b50350b97ddb (patch) | |
tree | 072f805928e7e540a4d2c0a3a7ec37f7529204a0 /sys/dev/amr | |
parent | 523f5243860c40ec5c7a3e961080d6035dbcb435 (diff) | |
download | FreeBSD-src-1dfc2c167f0c0ee95c98088b2c05b50350b97ddb.zip FreeBSD-src-1dfc2c167f0c0ee95c98088b2c05b50350b97ddb.tar.gz |
Be consistent about "static" functions: if the function is marked
static in its prototype, mark it static at the definition too.
Inspired by: FlexeLint warning #512
Diffstat (limited to 'sys/dev/amr')
-rw-r--r-- | sys/dev/amr/amr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c index ff8c472..44c0a2d 100644 --- a/sys/dev/amr/amr.c +++ b/sys/dev/amr/amr.c @@ -339,7 +339,7 @@ amr_submit_bio(struct amr_softc *sc, struct bio *bio) /******************************************************************************** * Accept an open operation on the control device. */ -int +static int amr_open(dev_t dev, int flags, int fmt, struct thread *td) { int unit = minor(dev); @@ -354,7 +354,7 @@ amr_open(dev_t dev, int flags, int fmt, struct thread *td) /******************************************************************************** * Accept the last close on the control device. */ -int +static int amr_close(dev_t dev, int flags, int fmt, struct thread *td) { int unit = minor(dev); @@ -369,7 +369,7 @@ amr_close(dev_t dev, int flags, int fmt, struct thread *td) /******************************************************************************** * Handle controller-specific control operations. */ -int +static int amr_ioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct thread *td) { struct amr_softc *sc = (struct amr_softc *)dev->si_drv1; @@ -1300,7 +1300,7 @@ amr_releasecmd(struct amr_command *ac) /******************************************************************************** * Allocate a new command cluster and initialise it. */ -void +static void amr_alloccmd_cluster(struct amr_softc *sc) { struct amr_command_cluster *acc; @@ -1326,7 +1326,7 @@ amr_alloccmd_cluster(struct amr_softc *sc) /******************************************************************************** * Free a command cluster */ -void +static void amr_freecmd_cluster(struct amr_command_cluster *acc) { struct amr_softc *sc = acc->acc_command[0].ac_sc; |