From 5f7c9ffd76887b0473d66443ac6b3a2454ba2887 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 16 Jun 2014 12:57:47 +0200 Subject: [PATCH] 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. --- src/shared/gatt-db.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.47.3