Revision 511d2b14 bt-host.c

b/bt-host.c
171 171
    if (fd < 0) {
172 172
        fprintf(stderr, "qemu: Can't open `%s': %s (%i)\n",
173 173
                        id, strerror(errno), errno);
174
        return 0;
174
        return NULL;
175 175
    }
176 176

  
177 177
# ifdef CONFIG_BLUEZ
......
192 192
    s->hci.acl_send = bt_host_acl;
193 193
    s->hci.bdaddr_set = bt_host_bdaddr_set;
194 194

  
195
    qemu_set_fd_handler2(s->fd, bt_host_read_poll, bt_host_read, 0, s);
195
    qemu_set_fd_handler2(s->fd, bt_host_read_poll, bt_host_read, NULL, s);
196 196

  
197 197
    return &s->hci;
198 198
}

Also available in: Unified diff