mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
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>
This commit is contained in:
@@ -171,7 +171,7 @@ bitbang_i2c_interface *bitbang_i2c_init(i2c_bus *bus)
|
||||
{
|
||||
bitbang_i2c_interface *s;
|
||||
|
||||
s = qemu_mallocz(sizeof(bitbang_i2c_interface));
|
||||
s = g_malloc0(sizeof(bitbang_i2c_interface));
|
||||
|
||||
s->bus = bus;
|
||||
s->last_data = 1;
|
||||
|
||||
Reference in New Issue
Block a user