From: Francis Dupont Date: Sat, 7 Oct 2017 15:44:48 +0000 (+0200) Subject: [master] Swapped memcmp arguments to make clang happy X-Git-Tag: trac5371_base~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c406e1d85cf9041a562d87787b813453378b7aa7;p=thirdparty%2Fkea.git [master] Swapped memcmp arguments to make clang happy --- diff --git a/src/bin/perfdhcp/tests/perf_pkt6_unittest.cc b/src/bin/perfdhcp/tests/perf_pkt6_unittest.cc index 71a23c6273..f4e5b41b75 100644 --- a/src/bin/perfdhcp/tests/perf_pkt6_unittest.cc +++ b/src/bin/perfdhcp/tests/perf_pkt6_unittest.cc @@ -279,7 +279,7 @@ TEST_F(PerfPkt6Test, PackTransactionId) { ASSERT_LE(offset_transid[0], out_buf.getLength()); // Validate transaction id. - EXPECT_EQ(0, memcmp(out_buf_data + offset_transid[0], ref_data, 3)); + EXPECT_EQ(0, memcmp(ref_data, out_buf_data + offset_transid[0], 3)); // Out of bounds transaction id offset.