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:
3d4d914
)
attrib: Minor code optimization
author
Claudio Takahasi
<claudio.takahasi@openbossa.org>
Mon, 24 Mar 2014 19:25:43 +0000
(16:25 -0300)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Mon, 24 Mar 2014 20:19:01 +0000
(22:19 +0200)
attrib/gatt.c
patch
|
blob
|
history
diff --git
a/attrib/gatt.c
b/attrib/gatt.c
index
f57d0bb
..
7363b4b
100644
(file)
--- a/
attrib/gatt.c
+++ b/
attrib/gatt.c
@@
-408,10
+408,8
@@
static struct gatt_included *included_from_buf(const uint8_t *buf, gsize len)
if (len == 8) {
bt_uuid_t uuid128;
- bt_uuid_t uuid16;
- bt_uuid16_create(&uuid16, get_le16(&buf[6]));
- bt_uuid_to_uuid128(&uuid16, &uuid128);
+ get_uuid128(BT_UUID16, &buf[6], &uuid128);
bt_uuid_to_string(&uuid128, incl->uuid, sizeof(incl->uuid));
}