summaryrefslogtreecommitdiff
path: root/src/feature/dirauth
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-22 14:16:23 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-22 14:24:09 -0400
commit6bc2b41e54976abdafb464128890ae23584aeed7 (patch)
treef22d0e2435fa928554d515a3ddb66e765a07f17a /src/feature/dirauth
parent3656fdae98ff964447a8a8a5cf3d44985e264c7f (diff)
downloadtor-6bc2b41e54976abdafb464128890ae23584aeed7.tar.gz
tor-6bc2b41e54976abdafb464128890ae23584aeed7.zip
config validation: make the "old_options" argument const.
We can't do this with the "options" argument yet, since several places in the code change those right now.
Diffstat (limited to 'src/feature/dirauth')
-rw-r--r--src/feature/dirauth/shared_random_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/dirauth/shared_random_state.c b/src/feature/dirauth/shared_random_state.c
index beeb03448c..94743fdb76 100644
--- a/src/feature/dirauth/shared_random_state.c
+++ b/src/feature/dirauth/shared_random_state.c
@@ -60,7 +60,7 @@ DUMMY_TYPECHECK_INSTANCE(sr_disk_state_t);
#define SR_DISK_STATE_MAGIC 0x98AB1254
static int
-disk_state_validate_cb(void *old_state, void *state, char **msg);
+disk_state_validate_cb(const void *old_state, void *state, char **msg);
/** Array of variables that are saved to disk as a persistent state. */
static const config_var_t state_vars[] = {
@@ -344,7 +344,7 @@ disk_state_validate(const sr_disk_state_t *state)
/** Validate the disk state (NOP for now). */
static int
-disk_state_validate_cb(void *old_state, void *state, char **msg)
+disk_state_validate_cb(const void *old_state, void *state, char **msg)
{
/* We don't use these; only options do. */
(void) old_state;