The next commit will change the type of this function, which is only
used in this file. So, make it static to isolate the change.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
struct ctdb_vnn_map *vnn_map,
TALLOC_CTX *mem_ctx, bool include_self);
-uint32_t *list_of_nodes(struct ctdb_context *ctdb,
- struct ctdb_node_map_old *node_map,
- TALLOC_CTX *mem_ctx, uint32_t mask, int exclude_pnn);
uint32_t *list_of_active_nodes(struct ctdb_context *ctdb,
struct ctdb_node_map_old *node_map,
TALLOC_CTX *mem_ctx, bool include_self);
/* Get list of nodes not including those with flags specified by mask.
* If exclude_pnn is not -1 then exclude that pnn from the list.
*/
-uint32_t *list_of_nodes(struct ctdb_context *ctdb,
- struct ctdb_node_map_old *node_map,
- TALLOC_CTX *mem_ctx,
- uint32_t mask,
- int exclude_pnn)
+static uint32_t *list_of_nodes(struct ctdb_context *ctdb,
+ struct ctdb_node_map_old *node_map,
+ TALLOC_CTX *mem_ctx,
+ uint32_t mask,
+ int exclude_pnn)
{
int i, j, num_nodes;
uint32_t *nodes;