From 7da5efedaee989caf449be0335470510e3a3fd21 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Mon, 24 Mar 2014 16:25:24 -0300 Subject: [PATCH] Replace bt_get_be64() by get_be64() --- android/avrcp-lib.c | 2 +- monitor/sdp.c | 3 +-- profiles/audio/avrcp.c | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/android/avrcp-lib.c b/android/avrcp-lib.c index 5e678eaf5..934106b9f 100644 --- a/android/avrcp-lib.c +++ b/android/avrcp-lib.c @@ -506,7 +506,7 @@ static ssize_t get_element_attributes(struct avrcp *session, if (!params || params_len != 9 + params[8] * 4) return -EINVAL; - uid = bt_get_be64(params); + uid = get_be64(params); number = params[8]; for (i = 0; i < number; i++) { diff --git a/monitor/sdp.c b/monitor/sdp.c index d729e1f23..a0ab3145a 100644 --- a/monitor/sdp.c +++ b/monitor/sdp.c @@ -97,8 +97,7 @@ static void print_uint(uint8_t indent, const uint8_t *data, uint32_t size) print_field("%*c0x%8.8x", indent, ' ', get_be32(data)); break; case 8: - print_field("%*c0x%16.16" PRIx64, indent, ' ', - bt_get_be64(data)); + print_field("%*c0x%16.16" PRIx64, indent, ' ', get_be64(data)); break; default: packet_hexdump(data, size); diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 6772984f4..ebd10a97a 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -2126,7 +2126,7 @@ static struct media_item *parse_media_element(struct avrcp *session, if (len < 13) return NULL; - uid = bt_get_be64(&operands[0]); + uid = get_be64(&operands[0]); namelen = MIN(get_be16(&operands[11]), sizeof(name) - 1); if (namelen > 0) { @@ -2161,7 +2161,7 @@ static struct media_item *parse_media_folder(struct avrcp *session, if (len < 12) return NULL; - uid = bt_get_be64(&operands[0]); + uid = get_be64(&operands[0]); type = operands[8]; playable = operands[9]; @@ -3072,7 +3072,7 @@ static void avrcp_track_changed(struct avrcp *session, { if (session->browsing_id) { struct avrcp_player *player = session->controller->player; - player->uid = bt_get_be64(&pdu->params[1]); + player->uid = get_be64(&pdu->params[1]); avrcp_get_item_attributes(session, player->uid); } else avrcp_get_element_attributes(session); -- 2.47.3