]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_get_all_nodes_by_dev_class.c
Add a way to set the channel's priv pointer when opening it.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_get_all_nodes_by_dev_class.c
index e32fb36c48e717b9495bf801b01609e5463b598a..82f0e17f88e3c25cd7bd3e26e9fe5a811b384712 100644 (file)
@@ -208,7 +208,7 @@ static void test_case_mesh_get_node_by_dev_class_02(void **state) {
 static bool test_steps_mesh_get_node_by_dev_class_02(void) {
        meshlink_node_t **nodes;
        size_t nnodes = 0;
-       int i;
+
        meshlink_destroy("getnodeconf.1");
 
        /* Create meshlink instance for NUT */
@@ -216,7 +216,7 @@ static bool test_steps_mesh_get_node_by_dev_class_02(void) {
        assert(mesh_nut);
        meshlink_set_log_cb(mesh_nut, TEST_MESHLINK_LOG_LEVEL, log_message);
 
-       nodes = meshlink_get_all_nodes_by_dev_class(mesh_nut, _DEV_CLASS_MAX + 10, NULL, &nnodes);
+       nodes = meshlink_get_all_nodes_by_dev_class(mesh_nut, DEV_CLASS_COUNT + 10, NULL, &nnodes);
        assert_int_equal(nodes, NULL);
        assert_int_not_equal(meshlink_errno, 0);
 
@@ -308,6 +308,8 @@ static bool test_steps_mesh_get_node_dev_class_02(void) {
 }
 
 static int black_box_setup_test_case(void **state) {
+       (void)state;
+
        fprintf(stderr, "Destroying confbases\n");
        meshlink_destroy("getnodeconf.1");
        meshlink_destroy("getnodeconf.2");