X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=test%2Fblackbox%2Ftest_cases_submesh01%2Fnode_sim_app2node1.c;h=059850d09350fddef31c24411e8858d1d00fc7ef;hp=ced45aebf4b33ba96b03dc1c7ee1003b52a4832c;hb=cdb3dada645394bb1e0d0bf7816291fbd9a2a4a0;hpb=6354733cc5044c5226c430d97262c06ab4cd0d5e diff --git a/test/blackbox/test_cases_submesh01/node_sim_app2node1.c b/test/blackbox/test_cases_submesh01/node_sim_app2node1.c index ced45aeb..059850d0 100644 --- a/test/blackbox/test_cases_submesh01/node_sim_app2node1.c +++ b/test/blackbox/test_cases_submesh01/node_sim_app2node1.c @@ -135,8 +135,9 @@ static void poll_cb(meshlink_handle_t *mesh, meshlink_channel_t *channel, size_t } -static void node_status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, - bool reachable) { +static void node_status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, bool reachable) { + (void)mesh; + if(!strcasecmp(node->name, "corenode1")) { if(reachable) { fprintf(stderr, "\tNode corenode1 became reachable\n"); @@ -147,12 +148,16 @@ static void node_status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, return; } -void mesh_start_test_handler(int a) { +void mesh_start_test_handler(int signum) { + (void)signum; + fprintf(stderr, "Starting test in app2node1\n"); set_sync_flag(&start_test, true); } int main(int argc, char *argv[]) { + (void)argc; + struct timeval main_loop_wait = { 2, 0 }; meshlink_channel_t *channel = NULL; meshlink_node_t *core_node = NULL; @@ -217,4 +222,4 @@ int main(int argc, char *argv[]) { meshlink_close(mesh); return EXIT_SUCCESS; -} \ No newline at end of file +}