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/or/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/or/shared_random.c')
-rw-r--r-- | src/or/shared_random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/shared_random.c b/src/or/shared_random.c index 5cdf3d0287..7a0273d495 100644 --- a/src/or/shared_random.c +++ b/src/or/shared_random.c @@ -589,7 +589,7 @@ STATIC int should_keep_commit(const sr_commit_t *commit, const char *voter_key, sr_phase_t phase) { - sr_commit_t *saved_commit; + const sr_commit_t *saved_commit; tor_assert(commit); tor_assert(voter_key); |