diff options
author | Anthony Liguori | 2011-08-21 05:09:37 +0200 |
---|---|---|
committer | Anthony Liguori | 2011-08-21 06:01:08 +0200 |
commit | 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c (patch) | |
tree | 9aa05d6e05ed83e67bf014f6745a3081b8407dc5 /hw/grlib_irqmp.c | |
parent | Make glib mandatory and fixup utils appropriately (diff) | |
download | qemu-7267c0947d7e8ae5dff7bafd932c3bc285f43e5c.tar.gz qemu-7267c0947d7e8ae5dff7bafd932c3bc285f43e5c.tar.xz qemu-7267c0947d7e8ae5dff7bafd932c3bc285f43e5c.zip |
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/grlib_irqmp.c')
-rw-r--r-- | hw/grlib_irqmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/grlib_irqmp.c b/hw/grlib_irqmp.c index b8738fc04d..9490a7830d 100644 --- a/hw/grlib_irqmp.c +++ b/hw/grlib_irqmp.c @@ -345,7 +345,7 @@ static int grlib_irqmp_init(SysBusDevice *dev) grlib_irqmp_write, irqmp, DEVICE_NATIVE_ENDIAN); - irqmp->state = qemu_mallocz(sizeof *irqmp->state); + irqmp->state = g_malloc0(sizeof *irqmp->state); if (irqmp_regs < 0) { return -1; |