diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-01-23 01:41:00 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-01-23 01:41:00 +0000 |
commit | 281c4e0b61763754f56eea64eb8fec65c3e83a03 (patch) | |
tree | e90f629967da9e217743e2cc1df3f9c81b346afc /sys/ufs | |
parent | 1a2247bc55afb9ab58997e179e77d2388a3a5cb5 (diff) |
minor cleanup I just happened to do when in this area.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/mfs/mfs_vfsops.c | 4 | ||||
-rw-r--r-- | sys/ufs/mfs/mfs_vnops.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c index 66b51a54486..aed5baf5a34 100644 --- a/sys/ufs/mfs/mfs_vfsops.c +++ b/sys/ufs/mfs/mfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfs_vfsops.c,v 1.15 2001/07/05 08:24:33 espie Exp $ */ +/* $OpenBSD: mfs_vfsops.c,v 1.16 2002/01/23 01:40:59 art Exp $ */ /* $NetBSD: mfs_vfsops.c,v 1.10 1996/02/09 22:31:28 christos Exp $ */ /* @@ -214,7 +214,7 @@ mfs_mount(mp, path, data, ndp, p) if (checkalias(devvp, makedev(255, mfs_minor), (struct mount *)0)) panic("mfs_mount: dup dev"); mfs_minor++; - mfsp = (struct mfsnode *)malloc(sizeof *mfsp, M_MFSNODE, M_WAITOK); + mfsp = malloc(sizeof *mfsp, M_MFSNODE, M_WAITOK); devvp->v_data = mfsp; mfsp->mfs_baseoff = args.base; mfsp->mfs_size = args.size; diff --git a/sys/ufs/mfs/mfs_vnops.c b/sys/ufs/mfs/mfs_vnops.c index c4b13594c98..8f734a97fc1 100644 --- a/sys/ufs/mfs/mfs_vnops.c +++ b/sys/ufs/mfs/mfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfs_vnops.c,v 1.19 2002/01/16 20:50:17 miod Exp $ */ +/* $OpenBSD: mfs_vnops.c,v 1.20 2002/01/23 01:40:59 art Exp $ */ /* $NetBSD: mfs_vnops.c,v 1.8 1996/03/17 02:16:32 christos Exp $ */ /* @@ -321,9 +321,9 @@ mfs_reclaim(v) struct vop_reclaim_args /* { struct vnode *a_vp; } */ *ap = v; - register struct vnode *vp = ap->a_vp; + struct vnode *vp = ap->a_vp; - FREE(vp->v_data, M_MFSNODE); + free(vp->v_data, M_MFSNODE); vp->v_data = NULL; return (0); } |