diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-09-08 09:30:21 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-30 14:08:10 -0500 |
commit | 54d262a728d97a26d1e019a8cd94a679a5741e31 (patch) | |
tree | 3d60c27b634363be351ead39120969cbd29bf394 /src | |
parent | 53ce6bb52d29e80c7efd29b8604bdd680c9515ea (diff) | |
download | tor-54d262a728d97a26d1e019a8cd94a679a5741e31.tar.gz tor-54d262a728d97a26d1e019a8cd94a679a5741e31.zip |
Fix compilation: get_options() now returns const
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c index 8880bd07fc..fd38e2f7b9 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -35,7 +35,7 @@ test_config_addressmap(void) "MapAddress 6.6.6.6 www.infiniteloop.org\n" , sizeof(buf)); - config_get_lines(buf, &(get_options()->AddressMap)); + config_get_lines(buf, &(get_options_mutable()->AddressMap)); config_register_addressmaps(get_options()); /* MapAddress .invalidwildcard.com .torserver.exit - no match */ @@ -116,7 +116,7 @@ test_config_addressmap(void) "MapAddress *.torproject.org 1.1.1.1\n" "MapAddress *.net 2.2.2.2\n" , sizeof(buf)); - config_get_lines(buf, &(get_options()->AddressMap)); + config_get_lines(buf, &(get_options_mutable()->AddressMap)); config_register_addressmaps(get_options()); strlcpy(address, "www.abc.com", sizeof(address)); @@ -142,7 +142,7 @@ test_config_addressmap(void) /* We don't support '*' as a mapping directive */ addressmap_clear_configured(); strlcpy(buf, "MapAddress * *.torserver.exit\n", sizeof(buf)); - config_get_lines(buf, &(get_options()->AddressMap)); + config_get_lines(buf, &(get_options_mutable()->AddressMap)); config_register_addressmaps(get_options()); strlcpy(address, "www.abc.com", sizeof(address)); |