summaryrefslogtreecommitdiffstats
path: root/src/tests/list_test.c
diff options
context:
space:
mode:
authorMichael Brown2012-05-04 19:46:26 +0200
committerMichael Brown2012-05-04 19:46:26 +0200
commit6a4b128191fb58f2b121a8f3b6cb2034d6f4cbca (patch)
treea0a44a2d56a7905901c7c211b7bbb2a271e33a49 /src/tests/list_test.c
parent[crypto] Allow certificate chains to be long-lived data structures (diff)
downloadipxe-6a4b128191fb58f2b121a8f3b6cb2034d6f4cbca.tar.gz
ipxe-6a4b128191fb58f2b121a8f3b6cb2034d6f4cbca.tar.xz
ipxe-6a4b128191fb58f2b121a8f3b6cb2034d6f4cbca.zip
[test] Fix compiler warning on older gcc versions
Reported-by: Alex Davies <alex@davz.net> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/tests/list_test.c')
-rw-r--r--src/tests/list_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/list_test.c b/src/tests/list_test.c
index 39698553..e237d56a 100644
--- a/src/tests/list_test.c
+++ b/src/tests/list_test.c
@@ -425,7 +425,7 @@ static void list_test_exec ( void ) {
pos = &list_tests[7];
list_iterate_entry_ok ( list_for_each_entry_continue, "293",
pos, list, list );
- pos = list_entry ( list, struct list_test, list );
+ ok ( pos == list_entry ( list, struct list_test, list ) );
list_iterate_entry_ok ( list_for_each_entry_continue, "47293",
pos, list, list );
pos = &list_tests[3];
@@ -434,7 +434,7 @@ static void list_test_exec ( void ) {
pos = &list_tests[2];
list_iterate_entry_ok ( list_for_each_entry_continue_reverse, "74",
pos, list, list );
- pos = list_entry ( list, struct list_test, list );
+ ok ( pos == list_entry ( list, struct list_test, list ) );
list_iterate_entry_ok ( list_for_each_entry_continue_reverse, "39274",
pos, list, list );
pos = &list_tests[4];