diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2007-10-29 15:38:01 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2007-10-29 15:38:01 +0000 |
commit | 400891aa229a9e5814fe31cc0e2182c2ee3eaa1a (patch) | |
tree | 38b6c7fff1932290a753f8c6b337642f8c6b6f62 /sys | |
parent | a64044a80eb86e06b8f65c814a31d3a7cfb51d9e (diff) |
MALLOC/FREE -> malloc/free
ok krw@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/miscfs/fifofs/fifo_vnops.c | 8 | ||||
-rw-r--r-- | sys/miscfs/portal/portal_vfsops.c | 5 | ||||
-rw-r--r-- | sys/miscfs/portal/portal_vnops.c | 7 |
3 files changed, 9 insertions, 11 deletions
diff --git a/sys/miscfs/fifofs/fifo_vnops.c b/sys/miscfs/fifofs/fifo_vnops.c index 0a9ae50cf51..3f6fcdd622d 100644 --- a/sys/miscfs/fifofs/fifo_vnops.c +++ b/sys/miscfs/fifofs/fifo_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fifo_vnops.c,v 1.24 2007/06/18 08:30:07 jasper Exp $ */ +/* $OpenBSD: fifo_vnops.c,v 1.25 2007/10/29 15:38:00 chl Exp $ */ /* $NetBSD: fifo_vnops.c,v 1.18 1996/03/16 23:52:42 christos Exp $ */ /* @@ -152,7 +152,7 @@ fifo_open(void *v) int error; if ((fip = vp->v_fifoinfo) == NULL) { - MALLOC(fip, struct fifoinfo *, sizeof(*fip), M_VNODE, M_WAITOK); + fip = malloc(sizeof(*fip), M_VNODE, M_WAITOK); vp->v_fifoinfo = fip; if ((error = socreate(AF_LOCAL, &rso, SOCK_STREAM, 0)) != 0) { free(fip, M_VNODE); @@ -392,7 +392,7 @@ fifo_close(void *v) if (fip->fi_readers == 0 && fip->fi_writers == 0) { error1 = soclose(fip->fi_readsock); error2 = soclose(fip->fi_writesock); - FREE(fip, M_VNODE); + free(fip, M_VNODE); vp->v_fifoinfo = NULL; } return (error1 ? error1 : error2); @@ -410,7 +410,7 @@ fifo_reclaim(void *v) soclose(fip->fi_readsock); soclose(fip->fi_writesock); - FREE(fip, M_VNODE); + free(fip, M_VNODE); vp->v_fifoinfo = NULL; return (0); diff --git a/sys/miscfs/portal/portal_vfsops.c b/sys/miscfs/portal/portal_vfsops.c index 5564b84e233..2af5983412d 100644 --- a/sys/miscfs/portal/portal_vfsops.c +++ b/sys/miscfs/portal/portal_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: portal_vfsops.c,v 1.21 2007/06/18 08:30:07 jasper Exp $ */ +/* $OpenBSD: portal_vfsops.c,v 1.22 2007/10/29 15:38:00 chl Exp $ */ /* $NetBSD: portal_vfsops.c,v 1.14 1996/02/09 22:40:41 christos Exp $ */ /* @@ -107,8 +107,7 @@ portal_mount(struct mount *mp, const char *path, void *data, struct nameidata *n FRELE(fp); return (error); } - MALLOC(rvp->v_data, void *, sizeof(struct portalnode), - M_TEMP, M_WAITOK); + rvp->v_data = malloc(sizeof(struct portalnode), M_TEMP, M_WAITOK); fmp = (struct portalmount *) malloc(sizeof(struct portalmount), M_MISCFSMNT, M_WAITOK); diff --git a/sys/miscfs/portal/portal_vnops.c b/sys/miscfs/portal/portal_vnops.c index 8da73a81bc9..aeb33c7d401 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.24 2007/06/18 08:30:07 jasper Exp $ */ +/* $OpenBSD: portal_vnops.c,v 1.25 2007/10/29 15:38:00 chl Exp $ */ /* $NetBSD: portal_vnops.c,v 1.17 1996/02/13 13:12:57 mycroft Exp $ */ /* @@ -199,8 +199,7 @@ portal_lookup(void *v) if (error) goto bad; fvp->v_type = VREG; - MALLOC(fvp->v_data, void *, sizeof(struct portalnode), M_TEMP, - M_WAITOK); + fvp->v_data = malloc(sizeof(struct portalnode), M_TEMP, M_WAITOK); pt = VTOPORTAL(fvp); /* @@ -591,7 +590,7 @@ portal_reclaim(void *v) free(pt->pt_arg, M_TEMP); pt->pt_arg = 0; } - FREE(ap->a_vp->v_data, M_TEMP); + free(ap->a_vp->v_data, M_TEMP); ap->a_vp->v_data = 0; return (0); |