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
|
@ -504,7 +504,7 @@ static void bt_hid_destroy(struct bt_device_s *dev)
|
|||
|
||||
hid_free(&hid->hid);
|
||||
|
||||
qemu_free(hid);
|
||||
g_free(hid);
|
||||
}
|
||||
|
||||
enum peripheral_minor_class {
|
||||
|
@ -517,7 +517,7 @@ enum peripheral_minor_class {
|
|||
static struct bt_device_s *bt_hid_init(struct bt_scatternet_s *net,
|
||||
enum peripheral_minor_class minor)
|
||||
{
|
||||
struct bt_hid_device_s *s = qemu_mallocz(sizeof(*s));
|
||||
struct bt_hid_device_s *s = g_malloc0(sizeof(*s));
|
||||
uint32_t class =
|
||||
/* Format type */
|
||||
(0 << 0) |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue