commit | a1c86eba31c4b60827d59af38320b4b8a71ce019 | [log] [tgz] |
---|---|---|
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Thu Aug 25 16:50:30 2016 +0300 |
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Thu Aug 25 17:02:22 2016 +0300 |
tree | a934ddd5e8bfd55515b117155d4e9be57cc7e17a | |
parent | 854b003fecb23426bc976e38d612ab8716b15179 [diff] |
build: Fix checking result of sizeof instead of memcmp This can be easily spot when building with clang: emulator/smp.c:373:53: error: size argument in 'memcmp' call is a comparison [-Werror,-Wmemsize-comparison] if (memcmp(conn->pcnf, confirm, sizeof(conn->pcnf) != 0)) { tools/smp-tester.c:596:53: error: size argument in 'memcmp' call is a comparison [-Werror,-Wmemsize-comparison] if (memcmp(data->pcnf, confirm, sizeof(data->pcnf) != 0)) {