ie_tlv_builder_init takes a size_t as input, yet for some reason
ie_tlv_builder_finalize takes an unsigned int argument as output. Fix
the latter to use size_t as well.
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 particular set of tests makes sure we can build the compact forms
of RSNE. The test data are the most compact versions of the RSNE IE
examples found in 802.11, Section 8.4.2.27.1
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]
==7978== 29 bytes in 3 blocks are definitely lost in loss record 2 of 2
==7978== at 0x4C2C66D: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==7978== by 0x4012FD: l_malloc (util.c:62)
==7978== by 0x4018EF: l_util_hexstring (util.c:372)
==7978== by 0x40118E: ie_test (in
/home/denkenz/iwd-master/unit/test-ie)
==7978== by 0x401BE7: l_test_run (test.c:83)
==7978== by 0x401016: main (in /home/denkenz/iwd-master/unit/test-ie)