diff options
author | Lucas De Marchi <lucas.de.marchi@gmail.com> | 2013-05-01 02:28:00 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-05-01 09:08:56 +0300 |
commit | ca87bc12aa33740e79af49c18bdfcf32b9870a71 (patch) | |
tree | 8304f97cdad9d3f8421551447484d76c64a80952 /profiles/cyclingspeed | |
parent | ad72eb58d0abdec001212fae9d911c2983939708 (diff) | |
download | bluez-ca87bc12aa33740e79af49c18bdfcf32b9870a71.tar.gz |
cyclingspeed: 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.
Diffstat (limited to 'profiles/cyclingspeed')
-rw-r--r-- | profiles/cyclingspeed/cyclingspeed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/profiles/cyclingspeed/cyclingspeed.c b/profiles/cyclingspeed/cyclingspeed.c index 6080f090d..76be23466 100644 --- a/profiles/cyclingspeed/cyclingspeed.c +++ b/profiles/cyclingspeed/cyclingspeed.c @@ -166,7 +166,7 @@ static int str2location(const char *location) return -1; } -static gint cmp_adapter(gconstpointer a, gconstpointer b) +static int cmp_adapter(gconstpointer a, gconstpointer b) { const struct csc_adapter *cadapter = a; const struct btd_adapter *adapter = b; @@ -177,7 +177,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 csc *csc = a; const struct btd_device *dev = b; @@ -188,7 +188,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; |