aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/client.c
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-12-21 19:26:23 -0200
committerJohan Hedberg <johan.hedberg@nokia.com>2010-12-22 13:50:17 +0200
commit5ffd0e637461504af3cc5e6f22be542a00eb1d55 (patch)
treeb17176dbabf1849b91b6cdc8f667f32786256c59 /attrib/client.c
parentba801b05d9e7c6dbc947829d9be48b2c3c7a488d (diff)
downloadbluez-5ffd0e637461504af3cc5e6f22be542a00eb1d55.tar.gz
bluez-5ffd0e637461504af3cc5e6f22be542a00eb1d55.tar.xz
bluez-5ffd0e637461504af3cc5e6f22be542a00eb1d55.zip
Fix attrib plugin deregistration
As the comparison method used for find what to de-register was wrong, it was causing the btd_device reference that the attrib plugin was keeping never to be dropped.
Diffstat (limited to 'attrib/client.c')
-rw-r--r--attrib/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/attrib/client.c b/attrib/client.c
index 8e96af46..69e4fb8b 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -167,7 +167,7 @@ static int gatt_dev_cmp(gconstpointer a, gconstpointer b)
const struct gatt_service *gatt = a;
const struct btd_device *dev = b;
- return gatt->dev == dev;
+ return gatt->dev != dev;
}
static int characteristic_handle_cmp(gconstpointer a, gconstpointer b)