From: Szymon Janc Date: Mon, 16 Jun 2014 10:57:47 +0000 (+0200) Subject: shared/gatt: Use proper type in attribute_destroy parameter X-Git-Tag: android-x86-4.4-r3~3594 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5f7c9ffd76887b0473d66443ac6b3a2454ba2887;p=android-x86%2Fexternal-bluetooth-bluez.git shared/gatt: Use proper type in attribute_destroy parameter This function is not called as a callback so there is no need to have it accept void pointer. --- diff --git a/src/shared/gatt-db.c b/src/shared/gatt-db.c index c11c5d1a1..9cbf409fb 100644 --- a/src/shared/gatt-db.c +++ b/src/shared/gatt-db.c @@ -95,10 +95,8 @@ static struct gatt_db_attribute *new_attribute(const bt_uuid_t *type, return attribute; } -static void attribute_destroy(void *data) +static void attribute_destroy(struct gatt_db_attribute *attribute) { - struct gatt_db_attribute *attribute = data; - /* Attribute was not initialized by user */ if (!attribute) return;