summaryrefslogtreecommitdiff
path: root/src/test/test_confparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-23 14:39:20 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-24 20:30:32 -0400
commit4a248bafba0136ded8370de672c0b27b912bbede (patch)
treef1db4023fe626d3f946890d06777d073599add86 /src/test/test_confparse.c
parent24ee44df90d12eb98ba5a39638963696ce2f8012 (diff)
downloadtor-4a248bafba0136ded8370de672c0b27b912bbede.tar.gz
tor-4a248bafba0136ded8370de672c0b27b912bbede.zip
Rename validate_fn{,_t} to start with "legacy_".
The current API of this callback mixes responsibilities, including: * validation * transition checking * processing (modifying) the configuration object. These will have to be disentangled piece by piece, so for now, we'll have "legacy" validate functions as well. This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ validate_fn_t legacy_validate_fn_t \ validate_fn legacy_validate_fn
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 8cda96ba57..0c12e35f8a 100644
--- a/src/test/test_confparse.c
+++ b/src/test/test_confparse.c
@@ -128,7 +128,7 @@ static const config_format_t test_fmt = {
.abbrevs = test_abbrevs,
.deprecations = test_deprecation_notes,
.vars = test_vars,
- .validate_fn = test_validate_cb,
+ .legacy_validate_fn = test_validate_cb,
.config_suite_offset = -1,
};
@@ -822,7 +822,7 @@ static config_format_t etest_fmt = {
.abbrevs = test_abbrevs,
.deprecations = test_deprecation_notes,
.vars = test_vars,
- .validate_fn = test_validate_cb,
+ .legacy_validate_fn = test_validate_cb,
.extra = &extra,
.config_suite_offset = -1,
};