]> git.proxmox.com Git - qemu.git/blobdiff - bt-host.c
qemu-nbd: print error messages from the daemon through a pipe
[qemu.git] / bt-host.c
index 6931e7cc62a9d000d5738cd3f33dd49100be2257..df5b7cdace86e43f66e534f6cfd60c2234428cbd 100644 (file)
--- a/bt-host.c
+++ b/bt-host.c
@@ -19,7 +19,6 @@
 
 #include "qemu-common.h"
 #include "qemu-char.h"
-#include "sysemu.h"
 #include "net.h"
 #include "bt-host.h"
 
@@ -178,7 +177,7 @@ struct HCIInfo *bt_host_hci(const char *id)
     }
 # endif
 
-    s = qemu_mallocz(sizeof(struct bt_host_hci_s));
+    s = g_malloc0(sizeof(struct bt_host_hci_s));
     s->fd = fd;
     s->hci.cmd_send = bt_host_cmd;
     s->hci.sco_send = bt_host_sco;