]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.c
Fix a compiler warning.
[meshlink] / src / meshlink.c
index f6121a1ea67f589335f271a7b3edd39568ca8435..1c81ad22673957362d0b11de8ef9bbd0c3eb38c8 100644 (file)
@@ -1744,7 +1744,7 @@ bool meshlink_set_canonical_address(meshlink_handle_t *mesh, meshlink_node_t *no
 }
 
 bool meshlink_add_address(meshlink_handle_t *mesh, const char *address) {
-       return meshlink_set_canonical_address(mesh, mesh->self, address, NULL);
+       return meshlink_set_canonical_address(mesh, (meshlink_node_t *)mesh->self, address, NULL);
 }
 
 bool meshlink_add_external_address(meshlink_handle_t *mesh) {