diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2014-03-24 16:25:37 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-03-24 22:08:20 +0200 |
commit | 91744cb56f13be246a8614800aea3065b46181d3 (patch) | |
tree | dd98768c89dbad773dd3dd15f6e9d2f77c6e3437 /profiles/scanparam | |
parent | 3f03ab5766de008f008fdd7cfb8679849accc51f (diff) | |
download | bluez-91744cb56f13be246a8614800aea3065b46181d3.tar.gz |
Replace att_get_u16() by get_le16()
Diffstat (limited to 'profiles/scanparam')
-rw-r--r-- | profiles/scanparam/scan.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/profiles/scanparam/scan.c b/profiles/scanparam/scan.c index 4fd8f53ab..d6e477e08 100644 --- a/profiles/scanparam/scan.c +++ b/profiles/scanparam/scan.c @@ -36,6 +36,7 @@ #include "src/device.h" #include "src/profile.h" #include "src/service.h" +#include "src/shared/util.h" #include "attrib/att.h" #include "attrib/gattrib.h" #include "attrib/gatt.h" @@ -119,8 +120,8 @@ static void discover_descriptor_cb(guint8 status, const guint8 *pdu, goto done; ptr = list->data[0]; - handle = att_get_u16(ptr); - uuid16 = att_get_u16(&ptr[2]); + handle = get_le16(ptr); + uuid16 = get_le16(&ptr[2]); if (uuid16 != GATT_CLIENT_CHARAC_CFG_UUID) goto done; |