From: Guus Sliepen Date: Tue, 26 Jun 2018 14:33:29 +0000 (+0200) Subject: Fix a compiler warning. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=fe4cf1f57aa26458d1c2a9c44a06f9e49fe8d615;p=meshlink Fix a compiler warning. --- diff --git a/src/meshlink.c b/src/meshlink.c index f6121a1e..1c81ad22 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -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) {