diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-08-05 23:11:37 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-08 20:29:35 -0400 |
commit | 4a1b57e9b00c8474ada28dd052a2de73a1e9c641 (patch) | |
tree | 47f39aa091ddfb3b15e18225d74a35e77f931cb5 /src/or | |
parent | 0bf8587858b927d1dcb39189442f55d8dabe50aa (diff) | |
download | tor-4a1b57e9b00c8474ada28dd052a2de73a1e9c641.tar.gz tor-4a1b57e9b00c8474ada28dd052a2de73a1e9c641.zip |
prop224 tests: Improve SRV protocol tests.
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/shared_random_state.c | 2 | ||||
-rw-r--r-- | src/or/shared_random_state.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/or/shared_random_state.c b/src/or/shared_random_state.c index 7f8094dafd..cbf58e95f4 100644 --- a/src/or/shared_random_state.c +++ b/src/or/shared_random_state.c @@ -133,7 +133,7 @@ get_voting_interval(void) /* Given the time <b>now</b>, return the start time of the current round of * the SR protocol. For example, if it's 23:47:08, the current round thus * started at 23:47:00 for a voting interval of 10 seconds. */ -static time_t +STATIC time_t get_start_time_of_current_round(time_t now) { const or_options_t *options = get_options(); diff --git a/src/or/shared_random_state.h b/src/or/shared_random_state.h index 03dd5eb37e..837fa75392 100644 --- a/src/or/shared_random_state.h +++ b/src/or/shared_random_state.h @@ -130,6 +130,7 @@ unsigned int sr_state_get_protocol_run_duration(void); STATIC int disk_state_load_from_disk_impl(const char *fname); STATIC sr_phase_t get_sr_protocol_phase(time_t valid_after); +STATIC time_t get_start_time_of_current_round(time_t now); STATIC time_t get_state_valid_until_time(time_t now); STATIC const char *get_phase_str(sr_phase_t phase); |