]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Rename compute_protover_vote to protover_compute_vote
authorNick Mathewson <nickm@torproject.org>
Mon, 12 Sep 2016 18:11:44 +0000 (14:11 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 26 Sep 2016 17:56:53 +0000 (10:56 -0700)
src/or/dirvote.c
src/or/protover.c
src/or/protover.h
src/test/test_protover.c

index f606b07f7a097440cc1d21b56ee31f246c796af3..c65243cf09afef9a95bedfde3429b8cc6bd5a7f3 100644 (file)
@@ -1256,7 +1256,7 @@ compute_nth_protocol_set(int n, int n_voters, const smartlist_t *votes)
       smartlist_add(proto_votes, (void*)v);
   } SMARTLIST_FOREACH_END(ns);
 
-  char *protocols = compute_protover_vote(proto_votes, threshold);
+  char *protocols = protover_compute_vote(proto_votes, threshold);
   smartlist_free(proto_votes);
 
   char *result = NULL;
index d29cdba0990fc7e344b15e11ad3f0c65685d11d6..434d3f36bebe66d4b60d1f1634a63511632c2af8 100644 (file)
@@ -520,7 +520,7 @@ contract_protocol_list(const smartlist_t *proto_strings)
  * contract_protocol_list above.
  */
 char *
-compute_protover_vote(const smartlist_t *list_of_proto_strings,
+protover_compute_vote(const smartlist_t *list_of_proto_strings,
                       int threshold)
 {
   smartlist_t *all_entries = smartlist_new();
index 520db37de2fb3d9a397ad3bb5973bb101337c92f..654127ee541516eeb7826676a80534c84cdef2a8 100644 (file)
@@ -27,7 +27,7 @@ int protover_all_supported(const char *s, char **missing);
 int protover_is_supported_here(protocol_type_t pr, uint32_t ver);
 const char *get_supported_protocols(void);
 
-char *compute_protover_vote(const smartlist_t *list_of_proto_strings,
+char *protover_compute_vote(const smartlist_t *list_of_proto_strings,
                             int threshold);
 const char *protover_compute_for_old_tor(const char *version);
 int protocol_list_supports_protocol(const char *list, protocol_type_t tp,
index eacbbcb81df6488556da3f23dfb47b1bf474f5d7..f00955d1b48321ca75b208d568f4728c2e7cdf86 100644 (file)
@@ -120,22 +120,22 @@ test_protover_vote(void *arg)
   (void) arg;
 
   smartlist_t *lst = smartlist_new();
-  char *result = compute_protover_vote(lst, 1);
+  char *result = protover_compute_vote(lst, 1);
 
   tt_str_op(result, OP_EQ, "");
   tor_free(result);
 
   smartlist_add(lst, (void*) "Foo=1-10,500 Bar=1,3-7,8");
-  result = compute_protover_vote(lst, 1);
+  result = protover_compute_vote(lst, 1);
   tt_str_op(result, OP_EQ, "Bar=1,3-8 Foo=1-10,500");
   tor_free(result);
 
   smartlist_add(lst, (void*) "Quux=123-456,78 Bar=2-6,8 Foo=9");
-  result = compute_protover_vote(lst, 1);
+  result = protover_compute_vote(lst, 1);
   tt_str_op(result, OP_EQ, "Bar=1-8 Foo=1-10,500 Quux=78,123-456");
   tor_free(result);
 
-  result = compute_protover_vote(lst, 2);
+  result = protover_compute_vote(lst, 2);
   tt_str_op(result, OP_EQ, "Bar=3-6,8 Foo=9");
   tor_free(result);