From c406e1d85cf9041a562d87787b813453378b7aa7 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Sat, 7 Oct 2017 17:44:48 +0200 Subject: [PATCH] [master] Swapped memcmp arguments to make clang happy --- src/bin/perfdhcp/tests/perf_pkt6_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.47.2