]> git.meshlink.io Git - meshlink/blobdiff - test/trio.c
Fix more compiler warnings.
[meshlink] / test / trio.c
index a183b3da92493d09e299989f843b160ec2bb93b9..478dd28ee56fd768fb92c6af777c91da8ebd166f 100644 (file)
@@ -47,7 +47,7 @@ static void baz_status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, bool r
        }
 }
 
-int main() {
+int main(void) {
        meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_cb);
 
        // Create three instances.
@@ -65,7 +65,7 @@ int main() {
                assert(mesh[i]);
                free(path);
 
-               assert(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]);