OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59eda24
)
shared/gatt: Use proper type in attribute_destroy parameter
author
Szymon Janc
<szymon.janc@tieto.com>
Mon, 16 Jun 2014 10:57:47 +0000
(12:57 +0200)
committer
Szymon 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
patch
|
blob
|
history
diff --git
a/src/shared/gatt-db.c
b/src/shared/gatt-db.c
index
c11c5d1
..
9cbf409
100644
(file)
--- 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;