OSDN Git Service

plugins: Get rid of gint
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 1 May 2013 05:27:58 +0000 (02:27 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 1 May 2013 06:08:56 +0000 (09:08 +0300)
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.

plugins/gatt-example.c

index bd0fbff..37972e8 100644 (file)
@@ -83,7 +83,7 @@ static void gatt_example_adapter_free(struct gatt_example_adapter *gadapter)
        g_free(gadapter);
 }
 
-static gint adapter_cmp(gconstpointer a, gconstpointer b)
+static int adapter_cmp(gconstpointer a, gconstpointer b)
 {
        const struct gatt_example_adapter *gatt_adapter = a;
        const struct btd_adapter *adapter = b;