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/syscons | |
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/syscons')
-rw-r--r-- | sys/dev/syscons/syscons.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 4673c34..51dca11 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -444,7 +444,7 @@ scdevtounit(dev_t dev) return vty/MAXCONS; } -int +static int scopen(dev_t dev, int flag, int mode, struct thread *td) { int unit = scdevtounit(dev); @@ -503,7 +503,7 @@ scopen(dev_t dev, int flag, int mode, struct thread *td) return error; } -int +static int scclose(dev_t dev, int flag, int mode, struct thread *td) { struct tty *tp = dev->si_tty; @@ -551,7 +551,7 @@ scclose(dev_t dev, int flag, int mode, struct thread *td) return(0); } -int +static int scread(dev_t dev, struct uio *uio, int flag) { if (!sc_saver_keyb_only) @@ -637,7 +637,7 @@ scparam(struct tty *tp, struct termios *t) return 0; } -int +static int scioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td) { int error; @@ -3359,7 +3359,7 @@ next_code: goto next_code; } -int +static int scmmap(dev_t dev, vm_offset_t offset, int nprot) { scr_stat *scp; |