mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Let make_consensus_method_list be used in tests
This commit is contained in:
parent
fb80a748ea
commit
21654ca7bd
@ -54,7 +54,6 @@ static int dirvote_perform_vote(void);
|
|||||||
static void dirvote_clear_votes(int all_votes);
|
static void dirvote_clear_votes(int all_votes);
|
||||||
static int dirvote_compute_consensuses(void);
|
static int dirvote_compute_consensuses(void);
|
||||||
static int dirvote_publish_consensus(void);
|
static int dirvote_publish_consensus(void);
|
||||||
static char *make_consensus_method_list(int low, int high, const char *sep);
|
|
||||||
|
|
||||||
/* =====
|
/* =====
|
||||||
* Voting
|
* Voting
|
||||||
@ -564,7 +563,7 @@ consensus_method_is_supported(int method)
|
|||||||
|
|
||||||
/** Return a newly allocated string holding the numbers between low and high
|
/** Return a newly allocated string holding the numbers between low and high
|
||||||
* (inclusive) that are supported consensus methods. */
|
* (inclusive) that are supported consensus methods. */
|
||||||
static char *
|
STATIC char *
|
||||||
make_consensus_method_list(int low, int high, const char *separator)
|
make_consensus_method_list(int low, int high, const char *separator)
|
||||||
{
|
{
|
||||||
char *list;
|
char *list;
|
||||||
|
@ -177,6 +177,7 @@ STATIC char *format_networkstatus_vote(crypto_pk_t *private_key,
|
|||||||
STATIC char *dirvote_compute_params(smartlist_t *votes, int method,
|
STATIC char *dirvote_compute_params(smartlist_t *votes, int method,
|
||||||
int total_authorities);
|
int total_authorities);
|
||||||
STATIC char *compute_consensus_package_lines(smartlist_t *votes);
|
STATIC char *compute_consensus_package_lines(smartlist_t *votes);
|
||||||
|
STATIC char *make_consensus_method_list(int low, int high, const char *sep);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user