From 6bc2b41e54976abdafb464128890ae23584aeed7 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 22 Oct 2019 14:16:23 -0400 Subject: 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. --- src/app/config/statefile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app/config/statefile.c') 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. */ -- cgit v1.2.3-54-g00ecf