]> git.meshlink.io Git - meshlink/commitdiff
Fix a compiler warning.
authorGuus Sliepen <guus@meshlink.io>
Tue, 26 Jun 2018 14:33:29 +0000 (16:33 +0200)
committerGuus Sliepen <guus@meshlink.io>
Tue, 26 Jun 2018 14:33:29 +0000 (16:33 +0200)
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) {