]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_get_all_nodes.c
Fix compiler warnings in the test suites.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_get_all_nodes.c
index 8b885a73fba46b08c55f5219b4664a0e3993603d..56a31398b5993dc9b0220281eb2521cf6be8f664 100644 (file)
@@ -40,8 +40,6 @@ static void test_case_get_all_nodes_02(void **state);
 static bool test_get_all_nodes_02(void);
 static void test_case_get_all_nodes_03(void **state);
 static bool test_get_all_nodes_03(void);
-static void test_case_get_all_nodes_04(void **state);
-static bool test_get_all_nodes_04(void);
 
 /* State structure for get_all_nodes Test Case #1 */
 static black_box_state_t test_case_get_all_nodes_01_state = {
@@ -128,11 +126,11 @@ static void test_case_get_all_nodes_02(void **state) {
     Error reported correctly by returning NULL
 */
 static bool test_get_all_nodes_02(void) {
-       meshlink_node_t **nodes = NULL;
        size_t nmemb = 0;
 
-       meshlink_node_t **node = meshlink_get_all_nodes(NULL, nodes, &nmemb);
-       assert_int_equal(nodes, NULL);
+       meshlink_node_t **nodes = meshlink_get_all_nodes(NULL, NULL, &nmemb);
+       assert_null(nodes);
+       assert_int_equal(nmemb, NULL);
 
        return true;
 }