From 48fd019b43ff2336553f2fe122db6929bea68ae8 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 31 Jul 2018 20:19:49 +0200 Subject: cosmetic: More context / naming / comment for test_idtag_parsing() Change-Id: I1ebeba2067549e0dd1541fa84715d44321ff3b43 --- tests/utils/utils_test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/utils/utils_test.c b/tests/utils/utils_test.c index a146190d..eec13ca3 100644 --- a/tests/utils/utils_test.c +++ b/tests/utils/utils_test.c @@ -175,7 +175,8 @@ static void test_idtag_parsing(void) struct tlv_parsed tvp; int rc; - static uint8_t data[] = { + /* IPA CCM IDENTITY REQUEST message: 8bit length followed by respective value */ + static uint8_t id_get_data[] = { 0x01, 0x08, 0x01, 0x07, 0x01, 0x02, @@ -188,7 +189,7 @@ static void test_idtag_parsing(void) 0x11, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; - rc = ipa_ccm_idtag_parse_off(&tvp, data, sizeof(data), 1); + rc = ipa_ccm_idtag_parse_off(&tvp, id_get_data, sizeof(id_get_data), 1); OSMO_ASSERT(rc == 0); OSMO_ASSERT(TLVP_PRESENT(&tvp, 8)); -- cgit v1.2.3