summaryrefslogtreecommitdiff
path: root/hw/bt-hid.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-07 15:32:56 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-07 15:32:56 +0000
commit511d2b140f3ff2f80d14637cdc2f29743a2daa51 (patch)
tree6cf21d1c95846f1c86879c60dffbe6a3eaa8aa6d /hw/bt-hid.c
parentc2764719914ff0c4d6c06adafea17629600f21ba (diff)
Sparse fixes: NULL use, header order, ANSI prototypes, static
Fix Sparse warnings: * use NULL instead of plain 0 * rearrange header include order to avoid redefining types accidentally * ANSIfy SLIRP * avoid "restrict" keyword * add static git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6736 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/bt-hid.c')
-rw-r--r--hw/bt-hid.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/hw/bt-hid.c b/hw/bt-hid.c
index 815caaf6a..3317ecc03 100644
--- a/hw/bt-hid.c
+++ b/hw/bt-hid.c
@@ -324,7 +324,8 @@ static void bt_hid_control_transaction(struct bt_hid_device_s *s,
break;
}
s->proto = parameter;
- s->usbdev->handle_control(s->usbdev, SET_PROTOCOL, s->proto, 0, 0, 0);
+ s->usbdev->handle_control(s->usbdev, SET_PROTOCOL, s->proto, 0, 0,
+ NULL);
ret = BT_HS_SUCCESSFUL;
break;
@@ -347,7 +348,7 @@ static void bt_hid_control_transaction(struct bt_hid_device_s *s,
/* We don't need to know about the Idle Rate here really,
* so just pass it on to the device. */
ret = s->usbdev->handle_control(s->usbdev,
- SET_IDLE, data[1], 0, 0, 0) ?
+ SET_IDLE, data[1], 0, 0, NULL) ?
BT_HS_SUCCESSFUL : BT_HS_ERR_INVALID_PARAMETER;
/* XXX: Does this generate a handshake? */
break;
@@ -462,7 +463,7 @@ static void bt_hid_close_control(void *opaque)
{
struct bt_hid_device_s *hid = opaque;
- hid->control = 0;
+ hid->control = NULL;
bt_hid_connected_update(hid);
}
@@ -470,7 +471,7 @@ static void bt_hid_close_interrupt(void *opaque)
{
struct bt_hid_device_s *hid = opaque;
- hid->interrupt = 0;
+ hid->interrupt = NULL;
bt_hid_connected_update(hid);
}