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/xen_console.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/xen_console.c')
-rw-r--r-- | hw/xen_console.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/xen_console.c b/hw/xen_console.c index 8ef104c9ac..99ff442f85 100644 --- a/hw/xen_console.c +++ b/hw/xen_console.c @@ -70,7 +70,7 @@ static void buffer_append(struct XenConsole *con) if ((buffer->capacity - buffer->size) < size) { buffer->capacity += (size + 1024); - buffer->data = qemu_realloc(buffer->data, buffer->capacity); + buffer->data = g_realloc(buffer->data, buffer->capacity); } while (cons != prod) @@ -89,7 +89,7 @@ static void buffer_append(struct XenConsole *con) uint8_t *maxpos = buffer->data + buffer->max_capacity; memmove(maxpos - over, maxpos, over); - buffer->data = qemu_realloc(buffer->data, buffer->max_capacity); + buffer->data = g_realloc(buffer->data, buffer->max_capacity); buffer->size = buffer->capacity = buffer->max_capacity; if (buffer->consumed > buffer->max_capacity - over) @@ -208,7 +208,7 @@ static int con_init(struct XenDevice *xendev) xenstore_store_pv_console_info(con->xendev.dev, con->chr); out: - qemu_free(type); + g_free(type); return ret; } |