OSDN Git Service

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

profiles/thermometer/thermometer.c

index 3757b25..c2ca251 100644 (file)
@@ -190,7 +190,7 @@ static void destroy_thermometer_adapter(gpointer user_data)
        g_free(tadapter);
 }
 
-static gint cmp_adapter(gconstpointer a, gconstpointer b)
+static int cmp_adapter(gconstpointer a, gconstpointer b)
 {
        const struct thermometer_adapter *tadapter = a;
        const struct btd_adapter *adapter = b;
@@ -201,7 +201,7 @@ static gint cmp_adapter(gconstpointer a, gconstpointer b)
        return -1;
 }
 
-static gint cmp_device(gconstpointer a, gconstpointer b)
+static int cmp_device(gconstpointer a, gconstpointer b)
 {
        const struct thermometer *t = a;
        const struct btd_device *dev = b;
@@ -212,7 +212,7 @@ static gint cmp_device(gconstpointer a, gconstpointer b)
        return -1;
 }
 
-static gint cmp_watcher(gconstpointer a, gconstpointer b)
+static int cmp_watcher(gconstpointer a, gconstpointer b)
 {
        const struct watcher *watcher = a;
        const struct watcher *match = b;