From 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Sat, 20 Aug 2011 22:09:37 -0500 Subject: Use glib memory allocation and free functions qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by: Anthony Liguori --- hw/mac_nvram.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/mac_nvram.c') diff --git a/hw/mac_nvram.c b/hw/mac_nvram.c index ced1e58..ed0a2b7 100644 --- a/hw/mac_nvram.c +++ b/hw/mac_nvram.c @@ -121,8 +121,8 @@ MacIONVRAMState *macio_nvram_init (target_phys_addr_t size, { MacIONVRAMState *s; - s = qemu_mallocz(sizeof(MacIONVRAMState)); - s->data = qemu_mallocz(size); + s = g_malloc0(sizeof(MacIONVRAMState)); + s->data = g_malloc0(size); s->size = size; s->it_shift = it_shift; -- cgit v1.1