diff options
author | Cidorvan Leite <cidorvan.leite@openbossa.org> | 2008-05-15 22:41:31 +0000 |
---|---|---|
committer | Cidorvan Leite <cidorvan.leite@openbossa.org> | 2008-05-15 22:41:31 +0000 |
commit | aa82d089f929c270f323d2a0dc04598df0f4d3ae (patch) | |
tree | 9568cc8804e9d8147c053422b87ca0f428e52600 | |
parent | 86893905a100c55e6c6c5feeec8ebc3c7909e3fb (diff) |
Removed casts from user data
-rw-r--r-- | input/server.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/input/server.c b/input/server.c index c4fa857d..48ffd7fd 100644 --- a/input/server.c +++ b/input/server.c @@ -205,7 +205,8 @@ static GIOChannel *intr_io = NULL; int server_start(DBusConnection *conn) { ctrl_io = bt_l2cap_listen(BDADDR_ANY, L2CAP_PSM_HIDP_CTRL, 0, 0, - connect_event_cb, (void *) L2CAP_PSM_HIDP_CTRL); + connect_event_cb, + GUINT_TO_POINTER(L2CAP_PSM_HIDP_CTRL)); if (!ctrl_io) { error("Failed to listen on control channel"); return -1; @@ -213,7 +214,8 @@ int server_start(DBusConnection *conn) g_io_channel_set_close_on_unref(ctrl_io, TRUE); intr_io = bt_l2cap_listen(BDADDR_ANY, L2CAP_PSM_HIDP_INTR, 0, 0, - connect_event_cb, (void *) L2CAP_PSM_HIDP_INTR); + connect_event_cb, + GUINT_TO_POINTER(L2CAP_PSM_HIDP_INTR)); if (!intr_io) { error("Failed to listen on interrupt channel"); g_io_channel_unref(ctrl_io); |