diff options
author | David Goulet <dgoulet@torproject.org> | 2016-06-29 15:32:51 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-07-01 14:01:42 -0400 |
commit | 36e201dffc5d57d92113e1e68ad4b6a0a7b3471e (patch) | |
tree | 37b2b78e09cd0e51466b3a5386be3717e5e15663 /src/test/test_shared_random.c | |
parent | 4a1904c12665b98c356aba8e7b73a3f3fd508a5b (diff) | |
download | tor-36e201dffc5d57d92113e1e68ad4b6a0a7b3471e.tar.gz tor-36e201dffc5d57d92113e1e68ad4b6a0a7b3471e.zip |
prop250: Add a DEL state action and return const SRVs
The *get* state query functions for the SRVs now only return const pointers
and the DEL action needs to be used to delete the SRVs from the state.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_shared_random.c')
-rw-r--r-- | src/test/test_shared_random.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c index b9003502b1..20ed0871d7 100644 --- a/src/test/test_shared_random.c +++ b/src/test/test_shared_random.c @@ -780,7 +780,7 @@ static void test_sr_compute_srv(void *arg) { (void) arg; - sr_srv_t *current_srv = NULL; + const sr_srv_t *current_srv = NULL; #define SRV_TEST_VECTOR \ "2A9B1D6237DAB312A40F575DA85C147663E7ED3F80E9555395F15B515C74253D" @@ -1026,7 +1026,7 @@ test_state_transition(void *arg) /* Test SRV rotation in our state. */ { - sr_srv_t *cur, *prev; + const sr_srv_t *cur, *prev; test_sr_setup_srv(1); cur = sr_state_get_current_srv(); tt_assert(cur); @@ -1039,7 +1039,7 @@ test_state_transition(void *arg) /* New protocol run. */ { - sr_srv_t *cur; + const sr_srv_t *cur; /* Setup some new SRVs so we can confirm that a new protocol run * actually makes them rotate and compute new ones. */ test_sr_setup_srv(1); |