diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-14 01:27:20 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-14 01:27:20 +0000 |
commit | 8327d0774703553db5e1a41a04bfdf4b1797c2ce (patch) | |
tree | ac9a52bace179e17769651fb9f805070d78abe5f /sys/miscfs/specfs | |
parent | 7b2c79b5895287d37f0c4e3adfc396eb7a6c03fb (diff) |
First round of __P removal in sys
Diffstat (limited to 'sys/miscfs/specfs')
-rw-r--r-- | sys/miscfs/specfs/spec_vnops.c | 12 | ||||
-rw-r--r-- | sys/miscfs/specfs/specdev.h | 38 |
2 files changed, 25 insertions, 25 deletions
diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c index e24cde8096b..744a61f6388 100644 --- a/sys/miscfs/specfs/spec_vnops.c +++ b/sys/miscfs/specfs/spec_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spec_vnops.c,v 1.22 2001/12/19 08:58:06 art Exp $ */ +/* $OpenBSD: spec_vnops.c,v 1.23 2002/03/14 01:27:08 millert Exp $ */ /* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */ /* @@ -65,7 +65,7 @@ char devout[] = "devout"; char devioc[] = "devioc"; char devcls[] = "devcls"; -int (**spec_vnodeop_p) __P((void *)); +int (**spec_vnodeop_p)(void *); struct vnodeopv_entry_desc spec_vnodeop_entries[] = { { &vop_default_desc, vn_default_error }, { &vop_lookup_desc, spec_lookup }, /* lookup */ @@ -104,7 +104,7 @@ struct vnodeopv_entry_desc spec_vnodeop_entries[] = { { &vop_pathconf_desc, spec_pathconf }, /* pathconf */ { &vop_advlock_desc, spec_advlock }, /* advlock */ { &vop_bwrite_desc, spec_bwrite }, /* bwrite */ - { (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL } + { (struct vnodeop_desc*)NULL, (int(*)(void *))NULL } }; struct vnodeopv_desc spec_vnodeop_opv_desc = { &spec_vnodeop_p, spec_vnodeop_entries }; @@ -240,7 +240,7 @@ spec_read(v) long bsize, bscale, ssize; struct partinfo dpart; int n, on, majordev; - int (*ioctl) __P((dev_t, u_long, caddr_t, int, struct proc *)); + int (*ioctl)(dev_t, u_long, caddr_t, int, struct proc *); int error = 0; #ifdef DIAGNOSTIC @@ -341,7 +341,7 @@ spec_write(v) long bsize, bscale, ssize; struct partinfo dpart; int n, on, majordev; - int (*ioctl) __P((dev_t, u_long, caddr_t, int, struct proc *)); + int (*ioctl)(dev_t, u_long, caddr_t, int, struct proc *); int error = 0; #ifdef DIAGNOSTIC @@ -595,7 +595,7 @@ spec_close(v) } */ *ap = v; register struct vnode *vp = ap->a_vp; dev_t dev = vp->v_rdev; - int (*devclose) __P((dev_t, int, int, struct proc *)); + int (*devclose)(dev_t, int, int, struct proc *); int mode, error; switch (vp->v_type) { diff --git a/sys/miscfs/specfs/specdev.h b/sys/miscfs/specfs/specdev.h index bdd2008545f..fc7366f6485 100644 --- a/sys/miscfs/specfs/specdev.h +++ b/sys/miscfs/specfs/specdev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: specdev.h,v 1.12 2001/12/19 08:58:06 art Exp $ */ +/* $OpenBSD: specdev.h,v 1.13 2002/03/14 01:27:08 millert Exp $ */ /* $NetBSD: specdev.h,v 1.12 1996/02/13 13:13:01 mycroft Exp $ */ /* @@ -73,7 +73,7 @@ struct vnode *speclisth[SPECHSZ]; /* * Prototypes for special file operations on vnodes. */ -extern int (**spec_vnodeop_p) __P((void *)); +extern int (**spec_vnodeop_p)(void *); struct nameidata; struct componentname; struct ucred; @@ -81,24 +81,24 @@ struct flock; struct buf; struct uio; -int spec_badop __P((void *)); -int spec_ebadf __P((void *)); +int spec_badop(void *); +int spec_ebadf(void *); -int spec_lookup __P((void *)); +int spec_lookup(void *); #define spec_create spec_badop #define spec_mknod spec_badop -int spec_open __P((void *)); -int spec_close __P((void *)); +int spec_open(void *); +int spec_close(void *); #define spec_access spec_ebadf #define spec_getattr spec_ebadf #define spec_setattr spec_ebadf -int spec_read __P((void *)); -int spec_write __P((void *)); +int spec_read(void *); +int spec_write(void *); #define spec_lease_check nullop -int spec_ioctl __P((void *)); -int spec_select __P((void *)); -int spec_kqfilter __P((void *)); -int spec_fsync __P((void *)); +int spec_ioctl(void *); +int spec_select(void *); +int spec_kqfilter(void *); +int spec_fsync(void *); #define spec_remove spec_badop #define spec_link spec_badop #define spec_rename spec_badop @@ -108,16 +108,16 @@ int spec_fsync __P((void *)); #define spec_readdir spec_badop #define spec_readlink spec_badop #define spec_abortop spec_badop -int spec_inactive __P((void *)); +int spec_inactive(void *); #define spec_reclaim nullop #define spec_lock vop_generic_lock #define spec_unlock vop_generic_unlock #define spec_islocked vop_generic_islocked -int spec_bmap __P((void *)); -int spec_strategy __P((void *)); -int spec_print __P((void *)); -int spec_pathconf __P((void *)); -int spec_advlock __P((void *)); +int spec_bmap(void *); +int spec_strategy(void *); +int spec_print(void *); +int spec_pathconf(void *); +int spec_advlock(void *); #define spec_reallocblks spec_badop #define spec_bwrite vop_generic_bwrite #define spec_revoke vop_generic_revoke |