mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06: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:
parent
14015304b6
commit
7267c0947d
357 changed files with 1672 additions and 1674 deletions
|
@ -1901,7 +1901,7 @@ static int e100_nic_init(PCIDevice *pci_dev)
|
|||
|
||||
qemu_register_reset(nic_reset, s);
|
||||
|
||||
s->vmstate = qemu_malloc(sizeof(vmstate_eepro100));
|
||||
s->vmstate = g_malloc(sizeof(vmstate_eepro100));
|
||||
memcpy(s->vmstate, &vmstate_eepro100, sizeof(vmstate_eepro100));
|
||||
s->vmstate->name = s->nic->nc.model;
|
||||
vmstate_register(&pci_dev->qdev, -1, s->vmstate, s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue