X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink%2B%2B.h;h=1d6c986123c0dd119458c2a9778768cf622269ed;hb=8bb44d97e49251dbf4c8d6b66956b91c7d2144cf;hp=2729130cc64872f686a1fe6a4ce9bda60a564c9f;hpb=3ba46c8dbefbb1dfc6776aa8b0107956f038a870;p=meshlink diff --git a/src/meshlink++.h b/src/meshlink++.h index 2729130c..1d6c9861 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -185,8 +185,8 @@ namespace meshlink { * @return The number of known nodes, or -1 in case of an error. * This can be larger than nmemb, in which case not all nodes were stored in the nodes array. */ - ssize_t get_all_nodes(node **nodes, size_t nmemb) { - return meshlink_get_all_nodes(this, (meshlink_node_t **)nodes, nmemb); + node **get_all_nodes(node **nodes, size_t *nmemb) { + return (node **)meshlink_get_all_nodes(this, (meshlink_node_t **)nodes, nmemb); } /// Sign data using the local node's MeshLink key.