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/bktr | |
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/bktr')
-rw-r--r-- | sys/dev/bktr/bktr_core.c | 6 | ||||
-rw-r--r-- | sys/dev/bktr/bktr_os.c | 15 |
2 files changed, 11 insertions, 10 deletions
diff --git a/sys/dev/bktr/bktr_core.c b/sys/dev/bktr/bktr_core.c index e14ba84..c0be614 100644 --- a/sys/dev/bktr/bktr_core.c +++ b/sys/dev/bktr/bktr_core.c @@ -2298,7 +2298,7 @@ tuner_ioctl( bktr_ptr_t bktr, int unit, ioctl_cmd_t cmd, caddr_t arg, struct thr /* * common ioctls */ -int +static int common_ioctl( bktr_ptr_t bktr, ioctl_cmd_t cmd, caddr_t arg ) { int pixfmt; @@ -2544,7 +2544,7 @@ dump_bt848( bktr_ptr_t bktr ) #define BKTR_TEST_RISC_STATUS_BIT2 (1 << 30) #define BKTR_TEST_RISC_STATUS_BIT3 (1 << 31) -bool_t notclipped (bktr_reg_t * bktr, int x, int width) { +static bool_t notclipped (bktr_reg_t * bktr, int x, int width) { int i; bktr_clip_t * clip_node; bktr->clip_start = -1; @@ -2571,7 +2571,7 @@ bool_t notclipped (bktr_reg_t * bktr, int x, int width) { return TRUE; } -bool_t getline(bktr_reg_t *bktr, int x ) { +static bool_t getline(bktr_reg_t *bktr, int x ) { int i, j; bktr_clip_t * clip_node ; diff --git a/sys/dev/bktr/bktr_os.c b/sys/dev/bktr/bktr_os.c index f22fcea..e26dc33 100644 --- a/sys/dev/bktr/bktr_os.c +++ b/sys/dev/bktr/bktr_os.c @@ -571,7 +571,7 @@ get_bktr_mem( int unit, unsigned size ) /* * */ -int +static int bktr_open( dev_t dev, int flags, int fmt, struct thread *td ) { bktr_ptr_t bktr; @@ -651,7 +651,7 @@ bktr_open( dev_t dev, int flags, int fmt, struct thread *td ) /* * */ -int +static int bktr_close( dev_t dev, int flags, int fmt, struct thread *td ) { bktr_ptr_t bktr; @@ -690,7 +690,7 @@ bktr_close( dev_t dev, int flags, int fmt, struct thread *td ) /* * */ -int +static int bktr_read( dev_t dev, struct uio *uio, int ioflag ) { bktr_ptr_t bktr; @@ -718,7 +718,7 @@ bktr_read( dev_t dev, struct uio *uio, int ioflag ) /* * */ -int +static int bktr_write( dev_t dev, struct uio *uio, int ioflag ) { return( EINVAL ); /* XXX or ENXIO ? */ @@ -728,7 +728,7 @@ bktr_write( dev_t dev, struct uio *uio, int ioflag ) /* * */ -int +static int bktr_ioctl( dev_t dev, ioctl_cmd_t cmd, caddr_t arg, int flag, struct thread *td ) { bktr_ptr_t bktr; @@ -760,7 +760,7 @@ bktr_ioctl( dev_t dev, ioctl_cmd_t cmd, caddr_t arg, int flag, struct thread *td /* * */ -int +static int bktr_mmap( dev_t dev, vm_offset_t offset, int nprot ) { int unit; @@ -790,7 +790,8 @@ bktr_mmap( dev_t dev, vm_offset_t offset, int nprot ) return( atop(vtophys(bktr->bigbuf) + offset) ); } -int bktr_poll( dev_t dev, int events, struct thread *td) +static int +bktr_poll( dev_t dev, int events, struct thread *td) { int unit; bktr_ptr_t bktr; |