summaryrefslogtreecommitdiff
path: root/attrib/gattrib.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2014-03-24 16:25:37 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2014-03-24 22:08:20 +0200
commit91744cb56f13be246a8614800aea3065b46181d3 (patch)
treedd98768c89dbad773dd3dd15f6e9d2f77c6e3437 /attrib/gattrib.c
parent3f03ab5766de008f008fdd7cfb8679849accc51f (diff)
downloadbluez-91744cb56f13be246a8614800aea3065b46181d3.tar.gz
Replace att_get_u16() by get_le16()
Diffstat (limited to 'attrib/gattrib.c')
-rw-r--r--attrib/gattrib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index 31450a3bd..912dffb15 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
@@ -37,6 +37,7 @@
#include "btio/btio.h"
#include "lib/uuid.h"
+#include "src/shared/util.h"
#include "src/log.h"
#include "attrib/att.h"
#include "attrib/gattrib.h"
@@ -381,7 +382,7 @@ static bool match_event(struct event *evt, const uint8_t *pdu, gsize len)
if (len < 3)
return false;
- handle = att_get_u16(&pdu[1]);
+ handle = get_le16(&pdu[1]);
if (evt->expected == pdu[0] && evt->handle == handle)
return true;