X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/5300f1a5487f67f0bde8ee1081b799108668cb1d..7df9381b7aa56c897e344f3bfe43bf5848bbd3e0:/bt-vhci.c diff --git a/bt-vhci.c b/bt-vhci.c index 3c5772093e..9d277c32bf 100644 --- a/bt-vhci.c +++ b/bt-vhci.c @@ -17,10 +17,11 @@ * with this program; if not, see . */ +#include "qemu/osdep.h" #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 +157,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;