aboutsummaryrefslogtreecommitdiff
path: root/src/app/config/statefile.c
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/app/config/statefile.c
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/app/config/statefile.c')
-rw-r--r--src/app/config/statefile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/config/statefile.c b/src/app/config/statefile.c
index 3653deeee1..5c2e37490b 100644
--- a/src/app/config/statefile.c
+++ b/src/app/config/statefile.c
@@ -141,7 +141,7 @@ static const config_var_t state_vars_[] = {
static int or_state_validate(or_state_t *state, char **msg);
-static int or_state_validate_cb(void *old_options,
+static int or_state_validate_cb(const void *old_options,
void *options, char **msg);
/** Magic value for or_state_t. */
@@ -268,7 +268,7 @@ validate_transports_in_state(or_state_t *state)
}
static int
-or_state_validate_cb(void *old_state, void *state, char **msg)
+or_state_validate_cb(const void *old_state, void *state, char **msg)
{
/* We don't use these; only options do. Still, we need to match that
* signature. */