[PATCH BlueZ v2 11/16] input: Get rid of gint

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Lucas De Marchi <lucas.de.marchi@xxxxxxxxx>

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 c092875..3ce9480 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 e15ae88..5c98573 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;
-- 
1.8.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux