summaryrefslogtreecommitdiff
path: root/sys/miscfs/portal
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-01 23:47:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-01 23:47:58 +0000
commit2c88a4441fc7f8daffe457a6412871272f744fe2 (patch)
treef7b527f772544a64b3346969753e3319c8de66e0 /sys/miscfs/portal
parent980158b9fd0f04fd96168924ec21adf0d6e00253 (diff)
pedro ok'd this ~3500 line diff which removes the vop argument
"ap = v" comments in under 8 seconds, so it must be ok. and it compiles too.
Diffstat (limited to 'sys/miscfs/portal')
-rw-r--r--sys/miscfs/portal/portal_vnops.c64
1 files changed, 11 insertions, 53 deletions
diff --git a/sys/miscfs/portal/portal_vnops.c b/sys/miscfs/portal/portal_vnops.c
index 238a9d90cca..68473dfb8fd 100644
--- a/sys/miscfs/portal/portal_vnops.c
+++ b/sys/miscfs/portal/portal_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: portal_vnops.c,v 1.22 2004/07/22 06:12:43 tedu Exp $ */
+/* $OpenBSD: portal_vnops.c,v 1.23 2007/06/01 23:47:57 deraadt Exp $ */
/* $NetBSD: portal_vnops.c,v 1.17 1996/02/13 13:12:57 mycroft Exp $ */
/*
@@ -175,11 +175,7 @@ int
portal_lookup(v)
void *v;
{
- struct vop_lookup_args /* {
- struct vnode * a_dvp;
- struct vnode ** a_vpp;
- struct componentname * a_cnp;
- } */ *ap = v;
+ struct vop_lookup_args *ap = v;
struct componentname *cnp = ap->a_cnp;
struct vnode **vpp = ap->a_vpp;
struct vnode *dvp = ap->a_dvp;
@@ -279,12 +275,7 @@ int
portal_open(v)
void *v;
{
- struct vop_open_args /* {
- struct vnode *a_vp;
- int a_mode;
- struct ucred *a_cred;
- struct proc *a_p;
- } */ *ap = v;
+ struct vop_open_args *ap = v;
struct socket *so = 0;
struct portalnode *pt;
struct proc *p = ap->a_p;
@@ -521,12 +512,7 @@ int
portal_getattr(v)
void *v;
{
- struct vop_getattr_args /* {
- struct vnode *a_vp;
- struct vattr *a_vap;
- struct ucred *a_cred;
- struct proc *a_p;
- } */ *ap = v;
+ struct vop_getattr_args *ap = v;
struct vnode *vp = ap->a_vp;
struct vattr *vap = ap->a_vap;
@@ -568,12 +554,7 @@ int
portal_setattr(v)
void *v;
{
- struct vop_setattr_args /* {
- struct vnode *a_vp;
- struct vattr *a_vap;
- struct ucred *a_cred;
- struct proc *a_p;
- } */ *ap = v;
+ struct vop_setattr_args *ap = v;
/*
* Can't mess with the root vnode
@@ -604,10 +585,7 @@ int
portal_inactive(v)
void *v;
{
- struct vop_inactive_args /* {
- struct vnode *a_vp;
- struct proc *a_p;
- } */ *ap = v;
+ struct vop_inactive_args *ap = v;
VOP_UNLOCK(ap->a_vp, 0, ap->a_p);
return (0);
@@ -617,9 +595,7 @@ int
portal_reclaim(v)
void *v;
{
- struct vop_reclaim_args /* {
- struct vnode *a_vp;
- } */ *ap = v;
+ struct vop_reclaim_args *ap = v;
struct portalnode *pt = VTOPORTAL(ap->a_vp);
if (pt->pt_arg) {
@@ -639,11 +615,7 @@ int
portal_pathconf(v)
void *v;
{
- struct vop_pathconf_args /* {
- struct vnode *a_vp;
- int a_name;
- register_t *a_retval;
- } */ *ap = v;
+ struct vop_pathconf_args *ap = v;
switch (ap->a_name) {
case _PC_LINK_MAX:
@@ -686,11 +658,7 @@ int
portal_link(v)
void *v;
{
- struct vop_link_args /* {
- struct vnode *a_dvp;
- struct vnode *a_vp;
- struct componentname *a_cnp;
- } */ *ap = v;
+ struct vop_link_args *ap = v;
VOP_ABORTOP(ap->a_dvp, ap->a_cnp);
vput(ap->a_dvp);
@@ -701,13 +669,7 @@ int
portal_symlink(v)
void *v;
{
- struct vop_symlink_args /* {
- struct vnode *a_dvp;
- struct vnode **a_vpp;
- struct componentname *a_cnp;
- struct vattr *a_vap;
- char *a_target;
- } */ *ap = v;
+ struct vop_symlink_args *ap = v;
VOP_ABORTOP(ap->a_dvp, ap->a_cnp);
vput(ap->a_dvp);
@@ -726,11 +688,7 @@ int
portal_poll(v)
void *v;
{
- struct vop_poll_args /* {
- struct vnode *a_vp;
- int a_events;
- struct proc *a_p;
- } */ *ap = v;
+ struct vop_poll_args *ap = v;
return (ap->a_events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM));
}