summaryrefslogtreecommitdiff
path: root/sys/miscfs/portal
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2004-05-18 12:37:52 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2004-05-18 12:37:52 +0000
commitc27759e2e556ea67d631921fc101ae852a93cafb (patch)
treec6e698c929ad8d70c0c23f8910dfbd880ccd0cc0 /sys/miscfs/portal
parent454f0b2cfcf50c1ac081b8b1fad60e632b818161 (diff)
useless caddr_t casts removal, same sha1s
Diffstat (limited to 'sys/miscfs/portal')
-rw-r--r--sys/miscfs/portal/portal_vnops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/miscfs/portal/portal_vnops.c b/sys/miscfs/portal/portal_vnops.c
index f50ebe32438..31b52b61c4a 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.18 2004/04/23 17:43:48 tedu Exp $ */
+/* $OpenBSD: portal_vnops.c,v 1.19 2004/05/18 12:37:51 pedro Exp $ */
/* $NetBSD: portal_vnops.c,v 1.17 1996/02/13 13:12:57 mycroft Exp $ */
/*
@@ -363,7 +363,7 @@ portal_open(v)
splx(s);
goto bad;
}
- (void) tsleep((caddr_t) &so->so_timeo, PSOCK, "portalcon", 5 * hz);
+ (void) tsleep(&so->so_timeo, PSOCK, "portalcon", 5 * hz);
}
splx(s);
@@ -386,7 +386,7 @@ portal_open(v)
pcred.pcr_gid = ap->a_cred->cr_gid;
pcred.pcr_ngroups = ap->a_cred->cr_ngroups;
bcopy(ap->a_cred->cr_groups, pcred.pcr_groups, NGROUPS * sizeof(gid_t));
- aiov[0].iov_base = (caddr_t) &pcred;
+ aiov[0].iov_base = &pcred;
aiov[0].iov_len = sizeof(pcred);
aiov[1].iov_base = pt->pt_arg;
aiov[1].iov_len = pt->pt_size;
@@ -624,7 +624,7 @@ portal_reclaim(v)
struct portalnode *pt = VTOPORTAL(ap->a_vp);
if (pt->pt_arg) {
- free((caddr_t) pt->pt_arg, M_TEMP);
+ free(pt->pt_arg, M_TEMP);
pt->pt_arg = 0;
}
FREE(ap->a_vp->v_data, M_TEMP);