aboutsummaryrefslogtreecommitdiff
path: root/src/app/config/config.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-06-21 11:20:21 -0400
committerNick Mathewson <nickm@torproject.org>2019-07-24 15:21:56 -0400
commitf8b193a74a3967d23bf55c8dcfb5bb2a16692c97 (patch)
tree0fc3d313039069cd4377e57c39c5a4852b51e606 /src/app/config/config.h
parentf306d12b58a9447076b961da072061f65830692c (diff)
downloadtor-f8b193a74a3967d23bf55c8dcfb5bb2a16692c97.tar.gz
tor-f8b193a74a3967d23bf55c8dcfb5bb2a16692c97.zip
Make config_var and config_fmt const.
Now that we have a reasonable implementation for overriding the default options for TestingTorNetwork, we don't need to modify config_var_t structs any more. And therefore, we can have constant format options, like reasonable people.
Diffstat (limited to 'src/app/config/config.h')
-rw-r--r--src/app/config/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/config/config.h b/src/app/config/config.h
index 46db02f944..c6feb89fe7 100644
--- a/src/app/config/config.h
+++ b/src/app/config/config.h
@@ -248,7 +248,7 @@ int options_any_client_port_set(const or_options_t *options);
STATIC int options_act(const or_options_t *old_options);
#ifdef TOR_UNIT_TESTS
-extern struct config_format_t options_format;
+extern const struct config_format_t options_format;
#endif
STATIC port_cfg_t *port_cfg_new(size_t namelen);