#define _GNU_SOURCE
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
}
}
-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.
assert(mesh[i]);
free(path);
- meshlink_add_address(mesh[i], "localhost");
+ assert(meshlink_set_canonical_address(mesh[i], meshlink_get_self(mesh[i]), "localhost", NULL));
data[i] = meshlink_export(mesh[i]);
assert(data[i]);