mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user