diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 22:09:37 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 23:01:08 -0500 |
commit | 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c (patch) | |
tree | 9aa05d6e05ed83e67bf014f6745a3081b8407dc5 /hw/grlib_irqmp.c | |
parent | 14015304b662e8f8ccce46c5a6927af6a14c510b (diff) |
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; |