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/adb.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/adb.c')
-rw-r--r-- | hw/adb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -290,7 +290,7 @@ void adb_kbd_init(ADBBusState *bus) { ADBDevice *d; KBDState *s; - s = qemu_mallocz(sizeof(KBDState)); + s = g_malloc0(sizeof(KBDState)); d = adb_register_device(bus, ADB_KEYBOARD, adb_kbd_request, adb_kbd_reset, s); qemu_add_kbd_event_handler(adb_kbd_put_keycode, d); @@ -447,7 +447,7 @@ void adb_mouse_init(ADBBusState *bus) ADBDevice *d; MouseState *s; - s = qemu_mallocz(sizeof(MouseState)); + s = g_malloc0(sizeof(MouseState)); d = adb_register_device(bus, ADB_MOUSE, adb_mouse_request, adb_mouse_reset, s); qemu_add_mouse_event_handler(adb_mouse_event, d, 0, "QEMU ADB Mouse"); |