From aa82d089f929c270f323d2a0dc04598df0f4d3ae Mon Sep 17 00:00:00 2001 From: Cidorvan Leite Date: Thu, 15 May 2008 22:41:31 +0000 Subject: Removed casts from user data --- input/server.c | 6 ++++-- 1 file 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); -- cgit