]> git.meshlink.io Git - meshlink/blobdiff - test/trio.c
Add meshlink_add_invitation_address(), deprecate meshlink_add_address().
[meshlink] / test / trio.c
index a60d0f26061eae31102005f74389f390f4934c77..4362f6da7b09fc98d9fc979e960e7107c0b31915 100644 (file)
@@ -1,5 +1,9 @@
 #define _GNU_SOURCE
 
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -61,7 +65,7 @@ int main() {
                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]);