summaryrefslogtreecommitdiff
path: root/src/sdpd-request.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2014-03-24 16:25:22 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2014-03-24 21:59:28 +0200
commit2c34d92207b840bde6818733df33434fc9ae1944 (patch)
tree17760b5e2188a1c30e29b78c101b33252dcf0995 /src/sdpd-request.c
parent6b7df0c11710e7a0848d9818a62eb1f720d9bdf1 (diff)
downloadbluez-2c34d92207b840bde6818733df33434fc9ae1944.tar.gz
Replace bt_get_be16() by get_be16()
Diffstat (limited to 'src/sdpd-request.c')
-rw-r--r--src/sdpd-request.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/sdpd-request.c b/src/sdpd-request.c
index fbeb4883f..d2ec9e105 100644
--- a/src/sdpd-request.c
+++ b/src/sdpd-request.c
@@ -37,6 +37,8 @@
#include <bluetooth/sdp.h>
#include <bluetooth/sdp_lib.h>
+#include "src/shared/util.h"
+
#include "sdpd.h"
#include "log.h"
@@ -174,7 +176,7 @@ static int extract_des(uint8_t *buf, int len, sdp_list_t **svcReqSeq, uint8_t *p
struct attrid *aid;
aid = malloc(sizeof(struct attrid));
aid->dtd = dataType;
- aid->uint16 = bt_get_be16(p);
+ aid->uint16 = get_be16(p);
pElem = (char *) aid;
} else {
uint16_t tmp;
@@ -392,7 +394,7 @@ static int service_search_req(sdp_req_t *req, sdp_buf_t *buf)
goto done;
}
- expected = bt_get_be16(pdata);
+ expected = get_be16(pdata);
SDPDBG("Expected count: %d", expected);
SDPDBG("Bytes scanned : %d", scanned);
@@ -479,7 +481,7 @@ static int service_search_req(sdp_req_t *req, sdp_buf_t *buf)
if (pCache) {
pCacheBuffer = pCache->data;
/* get the rsp_count from the cached buffer */
- rsp_count = bt_get_be16(pCacheBuffer);
+ rsp_count = get_be16(pCacheBuffer);
/* get index of the last sdp_record_t sent */
lastIndex = cstate->cStateValue.lastIndexSent;
@@ -656,7 +658,7 @@ static int service_attr_req(sdp_req_t *req, sdp_buf_t *buf)
goto done;
}
- max_rsp_size = bt_get_be16(pdata);
+ max_rsp_size = get_be16(pdata);
pdata += sizeof(uint16_t);
data_left -= sizeof(uint16_t);
@@ -813,7 +815,7 @@ static int service_search_attr_req(sdp_req_t *req, sdp_buf_t *buf)
goto done;
}
- max = bt_get_be16(pdata);
+ max = get_be16(pdata);
pdata += sizeof(uint16_t);
data_left -= sizeof(uint16_t);