diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-09-27 16:13:47 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-09-27 16:13:47 +0000 |
commit | 65b1f06cea909e6a64a8e8d4ae880e0e2c4b3283 (patch) | |
tree | bf632c8f3751a732375b958a12de937f6df03ce0 /sys/kern/vfs_init.c | |
parent | f01126fae0382ad656a4cdc3a0ff931e61ee6856 (diff) |
replace MALLOC/FREE w/ malloc/free for non-constant-sized memory allocations; art@ ok
Diffstat (limited to 'sys/kern/vfs_init.c')
-rw-r--r-- | sys/kern/vfs_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c index 50d4e45d670..c99dad50bcf 100644 --- a/sys/kern/vfs_init.c +++ b/sys/kern/vfs_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_init.c,v 1.9 1999/02/19 18:02:48 art Exp $ */ +/* $OpenBSD: vfs_init.c,v 1.10 2000/09/27 16:13:46 mickey Exp $ */ /* $NetBSD: vfs_init.c,v 1.6 1996/02/09 19:00:58 christos Exp $ */ /* @@ -122,8 +122,8 @@ vfs_opv_init_explicit(vfs_opv_desc) if (opv_desc_vector == NULL) { /* XXX - shouldn't be M_VNODE */ - MALLOC(opv_desc_vector, PFI *, - vfs_opv_numops * sizeof(PFI), M_VNODE, M_WAITOK); + opv_desc_vector = malloc(vfs_opv_numops * sizeof(PFI), + M_VNODE, M_WAITOK); bzero(opv_desc_vector, vfs_opv_numops * sizeof(PFI)); *(vfs_opv_desc->opv_desc_vector_p) = opv_desc_vector; DODEBUG(printf("vector at %p allocated\n", |