projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
microblaze: Add disassembler.
[qemu]
/
bt-host.c
diff --git
a/bt-host.c
b/bt-host.c
index
07679f6
..
9a06578
100644
(file)
--- a/
bt-host.c
+++ b/
bt-host.c
@@
-22,6
+22,7
@@
#include "qemu-char.h"
#include "sysemu.h"
#include "net.h"
#include "qemu-char.h"
#include "sysemu.h"
#include "net.h"
+#include "bt-host.h"
#ifndef _WIN32
# include <errno.h>
#ifndef _WIN32
# include <errno.h>
@@
-52,7
+53,7
@@
static void bt_host_send(struct HCIInfo *hci,
struct iovec iv[2];
int ret;
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;
iv[0].iov_len = 1;
iv[1].iov_base = (void *) data;
iv[1].iov_len = len;
@@
-171,7
+172,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);
if (fd < 0) {
fprintf(stderr, "qemu: Can't open `%s': %s (%i)\n",
id, strerror(errno), errno);
- return 0;
+ return NULL;
}
# ifdef CONFIG_BLUEZ
}
# ifdef CONFIG_BLUEZ
@@
-192,7
+193,7
@@
struct HCIInfo *bt_host_hci(const char *id)
s->hci.acl_send = bt_host_acl;
s->hci.bdaddr_set = bt_host_bdaddr_set;
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;
}
return &s->hci;
}