]> git.proxmox.com Git - mirror_qemu.git/blobdiff - bt-vhci.c
tests: Make check-block a phony target
[mirror_qemu.git] / bt-vhci.c
index 3c5772093efc340e4d60f86e093fb8318c2ed141..9d277c32bf0c274f7340d53916337e9a43b9e276 100644 (file)
--- a/bt-vhci.c
+++ b/bt-vhci.c
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#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;