diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2014-03-24 16:25:22 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-03-24 21:59:28 +0200 |
commit | 2c34d92207b840bde6818733df33434fc9ae1944 (patch) | |
tree | 17760b5e2188a1c30e29b78c101b33252dcf0995 /src/sdpd-service.c | |
parent | 6b7df0c11710e7a0848d9818a62eb1f720d9bdf1 (diff) | |
download | bluez-2c34d92207b840bde6818733df33434fc9ae1944.tar.gz |
Replace bt_get_be16() by get_be16()
Diffstat (limited to 'src/sdpd-service.c')
-rw-r--r-- | src/sdpd-service.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sdpd-service.c b/src/sdpd-service.c index 38bf808dc..06df94e49 100644 --- a/src/sdpd-service.c +++ b/src/sdpd-service.c @@ -39,6 +39,7 @@ #include <glib.h> +#include "src/shared/util.h" #include "sdpd.h" #include "log.h" @@ -320,7 +321,7 @@ static sdp_record_t *extract_pdu_server(bdaddr_t *device, uint8_t *p, return NULL; } - lookAheadAttrId = bt_get_be16(p + sizeof(uint8_t)); + lookAheadAttrId = get_be16(p + sizeof(uint8_t)); SDPDBG("Look ahead attr id : %d", lookAheadAttrId); @@ -365,7 +366,7 @@ static sdp_record_t *extract_pdu_server(bdaddr_t *device, uint8_t *p, seqlen, localExtractedLength); dtd = *(uint8_t *) p; - attrId = bt_get_be16(p + attrSize); + attrId = get_be16(p + attrSize); attrSize += sizeof(uint16_t); SDPDBG("DTD of attrId : %d Attr id : 0x%x", dtd, attrId); |