aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/nodelist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-11-17 12:55:23 -0500
committerNick Mathewson <nickm@torproject.org>2018-11-19 08:26:10 -0500
commit4f9548f89339fe1fab1863ac2b2c72d09f7224ef (patch)
tree777201ea0407f40fe8963f79be329fec89fb6c47 /src/feature/nodelist/nodelist.c
parentaa1d767e6b98efa4ffa7d39dba2272949aae2f65 (diff)
downloadtor-4f9548f89339fe1fab1863ac2b2c72d09f7224ef.tar.gz
tor-4f9548f89339fe1fab1863ac2b2c72d09f7224ef.zip
Expose more nodelist.c functions to tests
Diffstat (limited to 'src/feature/nodelist/nodelist.c')
-rw-r--r--src/feature/nodelist/nodelist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/feature/nodelist/nodelist.c b/src/feature/nodelist/nodelist.c
index 3994c8d072..d070f31c12 100644
--- a/src/feature/nodelist/nodelist.c
+++ b/src/feature/nodelist/nodelist.c
@@ -1870,7 +1870,7 @@ addrs_in_same_network_family(const tor_addr_t *a1,
* (case-insensitive), or if <b>node's</b> identity key digest
* matches a hexadecimal value stored in <b>nickname</b>. Return
* false otherwise. */
-static int
+STATIC int
node_nickname_matches(const node_t *node, const char *nickname)
{
const char *n = node_get_nickname(node);
@@ -1882,7 +1882,7 @@ node_nickname_matches(const node_t *node, const char *nickname)
}
/** Return true iff <b>node</b> is named by some nickname in <b>lst</b>. */
-static inline int
+STATIC int
node_in_nickname_smartlist(const smartlist_t *lst, const node_t *node)
{
if (!lst) return 0;
@@ -1894,7 +1894,7 @@ node_in_nickname_smartlist(const smartlist_t *lst, const node_t *node)
}
/** Return true iff n1's declared family contains n2. */
-static int
+STATIC int
node_family_contains(const node_t *n1, const node_t *n2)
{
if (n1->ri && n1->ri->declared_family) {
@@ -1909,7 +1909,7 @@ node_family_contains(const node_t *n1, const node_t *n2)
/**
* Return true iff <b>node</b> has declared a nonempty family.
**/
-static bool
+STATIC bool
node_has_declared_family(const node_t *node)
{
if (node->ri && node->ri->declared_family &&
@@ -1929,7 +1929,7 @@ node_has_declared_family(const node_t *node)
* its family. (Note that these nodes are not in node's family unless they
* also agree that node is in their family.)
**/
-static void
+STATIC void
node_lookup_declared_family(smartlist_t *out, const node_t *node)
{
if (node->ri && node->ri->declared_family &&