X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=bt-host.c;h=964ac1163c2c16651e19191871a2efaabe1b0b45;hb=2182349d736e8548f122b091731025f5ed63f670;hp=042a55e47e6a10079df838f5aa964be2a209633a;hpb=2e9b08e59e241fe0119463fc5192e15a6403eded;p=qemu
diff --git a/bt-host.c b/bt-host.c
index 042a55e..964ac11 100644
--- a/bt-host.c
+++ b/bt-host.c
@@ -13,16 +13,15 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, see .
*/
#include "qemu-common.h"
#include "qemu-char.h"
#include "sysemu.h"
#include "net.h"
+#include "bt-host.h"
#ifndef _WIN32
# include
@@ -53,7 +52,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;
@@ -172,7 +171,7 @@ struct HCIInfo *bt_host_hci(const char *id)
if (fd < 0) {
fprintf(stderr, "qemu: Can't open `%s': %s (%i)\n",
id, strerror(errno), errno);
- return 0;
+ return NULL;
}
# ifdef CONFIG_BLUEZ
@@ -193,14 +192,14 @@ struct HCIInfo *bt_host_hci(const char *id)
s->hci.acl_send = bt_host_acl;
s->hci.bdaddr_set = bt_host_bdaddr_set;
- qemu_set_fd_handler2(s->fd, bt_host_read_poll, bt_host_read, 0, s);
+ qemu_set_fd_handler2(s->fd, bt_host_read_poll, bt_host_read, NULL, s);
return &s->hci;
}
#else
struct HCIInfo *bt_host_hci(const char *id)
{
- fprintf(stderr, "qemu: bluetooth passthrough not supported (yet)\n", errno);
+ fprintf(stderr, "qemu: bluetooth passthrough not supported (yet)\n");
return 0;
}