ctdb-daemon: Make old list_of_nodes() function static
authorMartin Schwenke <martin@meltin.net>
Fri, 7 Jun 2019 20:08:48 +0000 (06:08 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 5 Jul 2019 05:03:22 +0000 (05:03 +0000)
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>
ctdb/include/ctdb_client.h
ctdb/server/ctdb_client.c

index a48e506d2716e57812a08e3e4c4ebb22f54d8dd5..ef4950ab53362dd9c7bc9908c634730988e5c5ba 100644 (file)
@@ -278,9 +278,6 @@ uint32_t *list_of_vnnmap_nodes(struct ctdb_context *ctdb,
                               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);
index f66ecbea7c16fea635b51843dcbcc7e2c3f4d83f..c5ffa121c3da56321f8f620275fbdab30b6792a1 100644 (file)
@@ -1772,11 +1772,11 @@ uint32_t *list_of_vnnmap_nodes(struct ctdb_context *ctdb,
 /* 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;