mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-21 22:09:23 +01:00
unit: Fix warnings
unit/test-ie.c: In function ‘ie_test_writer’: unit/test-ie.c:238:2: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] unit/test-ie.c:251:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
This commit is contained in:
parent
b461863f78
commit
89b91b7629
@ -169,7 +169,7 @@ static void ie_test_writer(const void *data)
|
||||
struct ie_tlv_builder builder;
|
||||
unsigned int final_len = 0, builder_len, expected_len = test->len;
|
||||
unsigned char *expected_buf = test->buf;
|
||||
int ie_count = 0;
|
||||
unsigned int ie_count = 0;
|
||||
char *str;
|
||||
|
||||
assert(ie_tlv_builder_init(&builder));
|
||||
@ -242,7 +242,7 @@ static void ie_test_writer(const void *data)
|
||||
l_free(str);
|
||||
|
||||
if (memcmp(test->buf, expected_buf, final_len)) {
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
str = l_util_hexstring(&beacon_frame[36], final_len);
|
||||
printf("Expecting buf %s\n", str);
|
||||
|
Loading…
Reference in New Issue
Block a user