summaryrefslogtreecommitdiff
path: root/src/test/test_confparse.c
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/test/test_confparse.c
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/test/test_confparse.c')
-rw-r--r--src/test/test_confparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_confparse.c b/src/test/test_confparse.c
index 4612419dff..ec018f0c52 100644
--- a/src/test/test_confparse.c
+++ b/src/test/test_confparse.c
@@ -55,7 +55,7 @@ static test_struct_t test_struct_t_dummy;
#define OBSOLETE(varname) \
CONFIG_VAR_OBSOLETE(varname)
-static config_var_t test_vars[] = {
+static const config_var_t test_vars[] = {
V(s, STRING, "hello"),
V(fn, FILENAME, NULL),
V(pos, POSINT, NULL),
@@ -123,7 +123,7 @@ static void test_free_cb(void *options);
#define TEST_MAGIC 0x1337
-static config_format_t test_fmt = {
+static const config_format_t test_fmt = {
sizeof(test_struct_t),
{
"test_struct_t",