From bd1e225c7e65d546a22fc4260943779769cfff88 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Fri, 28 Feb 2014 11:01:40 +0200 Subject: [PATCH] unit/avrcp: Fix lengths byte order params_len is passed as function argument and needs to be in host byte order. --- unit/test-avrcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit/test-avrcp.c b/unit/test-avrcp.c index f222df8c4..a43985a0e 100644 --- a/unit/test-avrcp.c +++ b/unit/test-avrcp.c @@ -323,7 +323,7 @@ static uint8_t avrcp_handle_get_capabilities(struct avrcp *session, } fail: - *params_len = htons(1); + *params_len = 1; params[0] = AVRCP_STATUS_INVALID_PARAM; return AVC_CTYPE_REJECTED; -- 2.47.3