]> git.meshlink.io Git - meshlink/blobdiff - test/blacklist.c
Don't use assert() to check the results of pthread_*() calls.
[meshlink] / test / blacklist.c
index 11a330eb86bf16c38bea443cbcf5ef48f56cf367..1f5cd605e936fafb9d7c076c68c6de8d34f72f89 100644 (file)
@@ -44,7 +44,11 @@ static void baz_status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, bool r
        }
 }
 
-int main() {
+int main(void) {
+       init_sync_flag(&bar_connected);
+       init_sync_flag(&bar_disconnected);
+       init_sync_flag(&baz_connected);
+
        meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_cb);
 
        // Create three instances.