diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-11-06 13:07:49 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-11-06 13:07:49 +0000 |
commit | e5f8d439492dbd3e7fe65eec3f803a8191e40a58 (patch) | |
tree | fa714ee2afc222817ecdd4a0216a98bc3d265200 /sys/kern | |
parent | d413f1ccde795c4f14b2dfdcdbca769a108055b0 (diff) |
Use ANSI-style function declarations, no binary change, okay jsg@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_bio.c | 4 | ||||
-rw-r--r-- | sys/kern/vfs_default.c | 32 | ||||
-rw-r--r-- | sys/kern/vfs_init.c | 18 | ||||
-rw-r--r-- | sys/kern/vfs_sync.c | 28 |
4 files changed, 28 insertions, 54 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index fa37e42b830..29b9996bd00 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.78 2005/10/08 16:36:23 pedro Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.79 2005/11/06 13:07:47 pedro Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /*- @@ -967,7 +967,7 @@ biodone(struct buf *bp) * in vfs_syscalls.c using sysctl. */ void -vfs_bufstats() +vfs_bufstats(void) { int s, i, j, count; register struct buf *bp; diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index 7ce1ca9530a..cff91c99d81 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_default.c,v 1.27 2005/10/19 16:50:46 pedro Exp $ */ +/* $OpenBSD: vfs_default.c,v 1.28 2005/11/06 13:07:47 pedro Exp $ */ /* * Portions of this code are: @@ -36,7 +36,6 @@ * SUCH DAMAGE. */ - #include <sys/param.h> #include <sys/systm.h> #include <sys/proc.h> @@ -48,19 +47,17 @@ #include <sys/event.h> #include <miscfs/specfs/specdev.h> - extern struct simplelock spechash_slock; -int filt_generic_readwrite(struct knote *kn, long hint); -void filt_generic_detach(struct knote *kn); +int filt_generic_readwrite(struct knote *, long); +void filt_generic_detach(struct knote *); /* * Eliminate all activity associated with the requested vnode * and with all vnodes aliased to the requested vnode. */ int -vop_generic_revoke(v) - void *v; +vop_generic_revoke(void *v) { struct vop_revoke_args /* { struct vnodeop_desc *a_desc; @@ -119,20 +116,16 @@ vop_generic_revoke(v) return (0); } - int -vop_generic_bwrite(v) - void *v; +vop_generic_bwrite(void *v) { struct vop_bwrite_args *ap = v; return (bwrite(ap->a_bp)); } - int -vop_generic_abortop(v) - void *v; +vop_generic_abortop(void *v) { struct vop_abortop_args /* { struct vnodeop_desc *a_desc; @@ -152,8 +145,7 @@ vop_generic_abortop(v) * count is maintained in an auxiliary vnode lock structure. */ int -vop_generic_lock(v) - void *v; +vop_generic_lock(void *v) { struct vop_lock_args /* { struct vnodeop_desc *a_desc; @@ -174,10 +166,8 @@ vop_generic_lock(v) /* * Decrement the active use count. */ - int -vop_generic_unlock(v) - void *v; +vop_generic_unlock(void *v) { return (0); } @@ -186,8 +176,7 @@ vop_generic_unlock(v) * Return whether or not the node is in use. */ int -vop_generic_islocked(v) - void *v; +vop_generic_islocked(void *v) { return (0); } @@ -196,8 +185,7 @@ struct filterops generic_filtops = { 1, NULL, filt_generic_detach, filt_generic_readwrite }; int -vop_generic_kqfilter(v) - void *v; +vop_generic_kqfilter(void *v) { struct vop_kqfilter_args /* { struct vnodeop_desc *a_desc; diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c index 39fed135549..89cfca4001a 100644 --- a/sys/kern/vfs_init.c +++ b/sys/kern/vfs_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_init.c,v 1.17 2004/05/14 04:00:33 tedu Exp $ */ +/* $OpenBSD: vfs_init.c,v 1.18 2005/11/06 13:07:48 pedro Exp $ */ /* $NetBSD: vfs_init.c,v 1.6 1996/02/09 19:00:58 christos Exp $ */ /* @@ -37,7 +37,6 @@ * @(#)vfs_init.c 8.3 (Berkeley) 1/4/94 */ - #include <sys/param.h> #include <sys/mount.h> #include <sys/time.h> @@ -80,8 +79,7 @@ typedef int (*PFI)(void *); */ /*ARGSUSED*/ int -vn_default_error(v) - void *v; +vn_default_error(void *v) { return (EOPNOTSUPP); @@ -109,8 +107,7 @@ vn_default_error(v) * Also handle backwards compatibility. */ void -vfs_opv_init_explicit(vfs_opv_desc) - struct vnodeopv_desc *vfs_opv_desc; +vfs_opv_init_explicit(struct vnodeopv_desc *vfs_opv_desc) { int (**opv_desc_vector)(void *); struct vnodeopv_entry_desc *opve_descp; @@ -162,8 +159,7 @@ vfs_opv_init_explicit(vfs_opv_desc) } void -vfs_opv_init_default(vfs_opv_desc) - struct vnodeopv_desc *vfs_opv_desc; +vfs_opv_init_default(struct vnodeopv_desc *vfs_opv_desc) { int j; int (**opv_desc_vector)(void *); @@ -183,7 +179,7 @@ vfs_opv_init_default(vfs_opv_desc) } void -vfs_opv_init() +vfs_opv_init(void) { int i; @@ -205,7 +201,7 @@ vfs_opv_init() * Initialize known vnode operations vectors. */ void -vfs_op_init() +vfs_op_init(void) { int i; @@ -237,7 +233,7 @@ struct pool namei_pool; * Initialize the vnode structures and initialize each file system type. */ void -vfsinit() +vfsinit(void) { int i; struct vfsconf *vfsconflist; diff --git a/sys/kern/vfs_sync.c b/sys/kern/vfs_sync.c index dbdd4183343..19b0389ee54 100644 --- a/sys/kern/vfs_sync.c +++ b/sys/kern/vfs_sync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_sync.c,v 1.34 2005/10/19 16:50:46 pedro Exp $ */ +/* $OpenBSD: vfs_sync.c,v 1.35 2005/11/06 13:07:48 pedro Exp $ */ /* * Portions of this code are: @@ -101,8 +101,7 @@ struct proc *syncerproc; */ void -vn_initialize_syncerd() - +vn_initialize_syncerd(void) { syncer_workitem_pending = hashinit(syncer_maxdelay, M_VNODE, M_WAITOK, &syncer_mask); @@ -113,9 +112,7 @@ vn_initialize_syncerd() * Add an item to the syncer work queue. */ void -vn_syncer_add_to_worklist(vp, delay) - struct vnode *vp; - int delay; +vn_syncer_add_to_worklist(struct vnode *vp, int delay) { int s, slot; @@ -135,10 +132,8 @@ vn_syncer_add_to_worklist(vp, delay) /* * System filesystem synchronizer daemon. */ - void -sched_sync(p) - struct proc *p; +sched_sync(struct proc *p) { struct synclist *slp; struct vnode *vp; @@ -241,7 +236,7 @@ sched_sync(p) * normal turn time, otherwise it could take over the cpu. */ int -speedup_syncer() +speedup_syncer(void) { int s; @@ -290,8 +285,7 @@ struct vnodeopv_desc sync_vnodeop_opv_desc = { * Create a new filesystem syncer vnode for the specified mount point. */ int -vfs_allocate_syncvnode(mp) - struct mount *mp; +vfs_allocate_syncvnode(struct mount *mp) { struct vnode *vp; static long start, incr, next; @@ -329,8 +323,7 @@ vfs_allocate_syncvnode(mp) * Do a lazy sync of the filesystem. */ int -sync_fsync(v) - void *v; +sync_fsync(void *v) { struct vop_fsync_args /* { struct vnodeop_desc *a_desc; @@ -376,8 +369,7 @@ sync_fsync(v) * The syncer vnode is no longer needed and is being decommissioned. */ int -sync_inactive(v) - void *v; +sync_inactive(void *v) { struct vop_inactive_args /* { struct vnodeop_desc *a_desc; @@ -412,9 +404,7 @@ sync_inactive(v) * Print out a syncer vnode. */ int -sync_print(v) - void *v; - +sync_print(void *v) { printf("syncer vnode\n"); |