X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/dbf352ad6e55dc7b40c62b402289164265a4f17c..c8e829b7bf6e1c84af8b4b13ee7fce2959c63e0e:/bt-vhci.c diff --git a/bt-vhci.c b/bt-vhci.c index 3c5772093e..e267c8ad15 100644 --- a/bt-vhci.c +++ b/bt-vhci.c @@ -18,9 +18,9 @@ */ #include "qemu-common.h" -#include "qemu-char.h" -#include "net.h" +#include "sysemu/bt.h" #include "hw/bt.h" +#include "qemu/main-loop.h" #define VHCI_DEV "/dev/vhci" #define VHCI_UDEV "/dev/hci_vhci" @@ -156,7 +156,7 @@ void bt_vhci_init(struct HCIInfo *info) exit(-1); } - s = qemu_mallocz(sizeof(struct bt_vhci_s)); + s = g_malloc0(sizeof(struct bt_vhci_s)); s->fd = fd; s->info = info ?: qemu_next_hci(); s->info->opaque = s;