From f81021d0866a7e60b9ae7b6142966c9c61088583 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 1 May 2013 02:28:05 -0300 Subject: [PATCH] input: Get rid of gint Use plain int instead of gint. In glib gint is always a typedef to int, so it's safe to use it even for callbacks with glib. --- profiles/input/hog.c | 2 +- profiles/input/server.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/input/hog.c b/profiles/input/hog.c index c0928752e..3ce948015 100644 --- a/profiles/input/hog.c +++ b/profiles/input/hog.c @@ -539,7 +539,7 @@ static void output_written_cb(guint8 status, const guint8 *pdu, } } -static gint report_type_cmp(gconstpointer a, gconstpointer b) +static int report_type_cmp(gconstpointer a, gconstpointer b) { const struct report *report = a; uint8_t type = GPOINTER_TO_UINT(b); diff --git a/profiles/input/server.c b/profiles/input/server.c index e15ae8850..5c98573bd 100644 --- a/profiles/input/server.c +++ b/profiles/input/server.c @@ -55,7 +55,7 @@ struct input_server { GIOChannel *confirm; }; -static gint server_cmp(gconstpointer s, gconstpointer user_data) +static int server_cmp(gconstpointer s, gconstpointer user_data) { const struct input_server *server = s; const bdaddr_t *src = user_data; -- 2.11.0