]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Let make_consensus_method_list be used in tests
authorMatthew Finkel <Matthew.Finkel@gmail.com>
Wed, 27 May 2015 08:28:33 +0000 (08:28 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 18 Dec 2015 18:14:10 +0000 (13:14 -0500)
src/or/dirvote.c
src/or/dirvote.h

index 0449e9d8d9b84447541a5a8452aa4de13f2d7238..b61b33af794dd7d3291020eee916b2a8ed51ef8e 100644 (file)
@@ -54,7 +54,6 @@ static int dirvote_perform_vote(void);
 static void dirvote_clear_votes(int all_votes);
 static int dirvote_compute_consensuses(void);
 static int dirvote_publish_consensus(void);
-static char *make_consensus_method_list(int low, int high, const char *sep);
 
 /* =====
  * Voting
@@ -564,7 +563,7 @@ consensus_method_is_supported(int method)
 
 /** Return a newly allocated string holding the numbers between low and high
  * (inclusive) that are supported consensus methods. */
-static char *
+STATIC char *
 make_consensus_method_list(int low, int high, const char *separator)
 {
   char *list;
index 966d163088748006cd29c7ea575cc7d9873b904d..cc526ea34ef02dce47d83e7b32096d9383308748 100644 (file)
@@ -177,6 +177,7 @@ STATIC char *format_networkstatus_vote(crypto_pk_t *private_key,
 STATIC char *dirvote_compute_params(smartlist_t *votes, int method,
                              int total_authorities);
 STATIC char *compute_consensus_package_lines(smartlist_t *votes);
+STATIC char *make_consensus_method_list(int low, int high, const char *sep);
 #endif
 
 #endif