OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65878a7
)
plugins: Get rid of gint
author
Lucas De Marchi
<lucas.de.marchi@gmail.com>
Wed, 1 May 2013 05:27:58 +0000
(
02:27
-0300)
committer
Johan 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
patch
|
blob
|
history
diff --git
a/plugins/gatt-example.c
b/plugins/gatt-example.c
index
bd0fbff
..
37972e8
100644
(file)
--- a/
plugins/gatt-example.c
+++ b/
plugins/gatt-example.c
@@
-83,7
+83,7
@@
static void gatt_example_adapter_free(struct gatt_example_adapter *gadapter)
g_free(gadapter);
}
-static
g
int 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;