aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/client.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2010-08-20 10:57:47 -0300
committerAnderson Lizardo <anderson.lizardo@openbossa.org>2010-09-01 11:38:51 -0400
commitd7323c47a928b8539b486ee643e95ec7aa36a41a (patch)
tree57ad332e899e5f3b06ca7f81bc0e150ee8f82cc5 /attrib/client.c
parent2b5b90c2b0e25e53ae0d07d30b624193d1096eed (diff)
downloadbluez-d7323c47a928b8539b486ee643e95ec7aa36a41a.tar.gz
bluez-d7323c47a928b8539b486ee643e95ec7aa36a41a.tar.xz
bluez-d7323c47a928b8539b486ee643e95ec7aa36a41a.zip
Remove castings on attribute server
Diffstat (limited to 'attrib/client.c')
-rw-r--r--attrib/client.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/attrib/client.c b/attrib/client.c
index ec9c0fd9..c3d858d3 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -137,8 +137,11 @@ static void gatt_service_free(void *user_data)
g_free(gatt);
}
-static int gatt_path_cmp(const struct gatt_service *gatt, const char *path)
+static int gatt_path_cmp(gconstpointer a, gconstpointer b)
{
+ const struct gatt_service *gatt = a;
+ const char *path = b;
+
return strcmp(gatt->path, path);
}
@@ -1034,7 +1037,7 @@ void attrib_client_unregister(const char *path)
struct gatt_service *gatt;
GSList *l;
- l = g_slist_find_custom(services, path, (GCompareFunc) gatt_path_cmp);
+ l = g_slist_find_custom(services, path, gatt_path_cmp);
if (!l)
return;