3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-24 23:42:42 +01:00

unit: fix ie test comparison

Most likely here we want to compare the variable
not doing an assignment.

unit/test-ie.c:227:2: error: suggest parentheses around
assignment used as truth value [-Werror=parentheses]
assert(expected_len = final_len);
^~~~~~
This commit is contained in:
Julien Massot 2017-04-10 11:35:45 +02:00 committed by Denis Kenzior
parent b6ebce0d90
commit dc3b17f496

View File

@ -224,7 +224,7 @@ static void ie_test_writer(const void *data)
ie_tlv_builder_finalize(&builder, &builder_len);
assert(final_len == builder_len);
assert(expected_len = final_len);
assert(expected_len == final_len);
assert(ie_count == test->num_ie);
str = l_util_hexstring(test->buf, final_len);