OSDN Git Service

shared/gatt: Use proper type in attribute_destroy parameter
authorSzymon Janc <szymon.janc@tieto.com>
Mon, 16 Jun 2014 10:57:47 +0000 (12:57 +0200)
committerSzymon Janc <szymon.janc@tieto.com>
Mon, 16 Jun 2014 10:59:58 +0000 (12:59 +0200)
This function is not called as a callback so there is no need to have
it accept void pointer.

src/shared/gatt-db.c

index c11c5d1..9cbf409 100644 (file)
@@ -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;