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/tsc210x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/tsc210x.c') diff --git a/hw/tsc210x.c b/hw/tsc210x.c index 96446dd463..3c448a6f0f 100644 --- a/hw/tsc210x.c +++ b/hw/tsc210x.c @@ -1105,7 +1105,7 @@ uWireSlave *tsc2102_init(qemu_irq pint) TSC210xState *s; s = (TSC210xState *) - qemu_mallocz(sizeof(TSC210xState)); + g_malloc0(sizeof(TSC210xState)); memset(s, 0, sizeof(TSC210xState)); s->x = 160; s->y = 160; @@ -1154,7 +1154,7 @@ uWireSlave *tsc2301_init(qemu_irq penirq, qemu_irq kbirq, qemu_irq dav) TSC210xState *s; s = (TSC210xState *) - qemu_mallocz(sizeof(TSC210xState)); + g_malloc0(sizeof(TSC210xState)); memset(s, 0, sizeof(TSC210xState)); s->x = 400; s->y = 240; -- cgit v1.2.3