]> git.meshlink.io Git - meshlink/blobdiff - test/trio.c
Don't use assert() to check the results of pthread_*() calls.
[meshlink] / test / trio.c
index 4362f6da7b09fc98d9fc979e960e7107c0b31915..bdb3904e37e4540faf734e4bd5c7c145f3eddd35 100644 (file)
@@ -47,7 +47,11 @@ static void baz_status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, bool r
        }
 }
 
-int main() {
+int main(void) {
+       init_sync_flag(&received);
+       init_sync_flag(&bar_learned_baz);
+       init_sync_flag(&baz_learned_bar);
+
        meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_cb);
 
        // Create three instances.