X-Git-Url: http://git.maemo.org/git/?p=qemu;a=blobdiff_plain;f=bt-host.c;h=9a06578c99ea2bfa04aa74eb695c6f465f08a4d8;hp=a0dcce7b414306de2b1840e9143240c83d839ac3;hb=HEAD;hpb=511d2b140f3ff2f80d14637cdc2f29743a2daa51 diff --git a/bt-host.c b/bt-host.c index a0dcce7..9a06578 100644 --- a/bt-host.c +++ b/bt-host.c @@ -22,6 +22,7 @@ #include "qemu-char.h" #include "sysemu.h" #include "net.h" +#include "bt-host.h" #ifndef _WIN32 # include @@ -52,7 +53,7 @@ static void bt_host_send(struct HCIInfo *hci, struct iovec iv[2]; int ret; - iv[0].iov_base = &pkt; + iv[0].iov_base = (void *)&pkt; iv[0].iov_len = 1; iv[1].iov_base = (void *) data; iv[1].iov_len = len;