summaryrefslogtreecommitdiff
path: root/src/lib/confmgt
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/lib/confmgt
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/lib/confmgt')
-rw-r--r--src/lib/confmgt/confparse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/confmgt/confparse.h b/src/lib/confmgt/confparse.h
index 628eb8927e..8d7278cb04 100644
--- a/src/lib/confmgt/confparse.h
+++ b/src/lib/confmgt/confparse.h
@@ -68,7 +68,7 @@ typedef struct config_deprecation_t {
* config_dump(); later in our refactoring, it will be cleaned up and used
* more generally.
*/
-typedef int (*validate_fn_t)(void *oldval,
+typedef int (*validate_fn_t)(const void *oldval,
void *newval,
char **msg_out);