]> git.meshlink.io Git - meshlink/blobdiff - test/import-export.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / import-export.c
index 133cbcbe98e30084afbac38f12ab833473a97185..8bc41c1b3c06fad7ac11b7fba4956f41abfe5dac 100644 (file)
@@ -43,8 +43,8 @@ int main() {
 
        // Import and export both side's data
 
-       meshlink_add_address(mesh1, "localhost");
-       meshlink_add_address(mesh2, "localhost");
+       assert(meshlink_add_address(mesh1, "localhost"));
+       assert(meshlink_add_address(mesh2, "localhost"));
 
        char *data = meshlink_export(mesh1);
        assert(data);