diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-22 13:52:40 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-10-22 13:52:40 -0400 |
commit | 697d99e50411b29eeb82667a870bd10c5efa9509 (patch) | |
tree | 46ba4cdd127232036743d04506dd51d742e2de93 /src/lib/confmgt/confparse.c | |
parent | 91413e04b458f41334ea4e25e35829043956b742 (diff) | |
download | tor-697d99e50411b29eeb82667a870bd10c5efa9509.tar.gz tor-697d99e50411b29eeb82667a870bd10c5efa9509.zip |
validate_fn(): remove now-unused defaults and from_setconf.
These arguments were only used by options_validate, and are now
ignored even there.
Diffstat (limited to 'src/lib/confmgt/confparse.c')
-rw-r--r-- | src/lib/confmgt/confparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/confmgt/confparse.c b/src/lib/confmgt/confparse.c index 08e562f654..323c88a31c 100644 --- a/src/lib/confmgt/confparse.c +++ b/src/lib/confmgt/confparse.c @@ -1166,7 +1166,7 @@ config_dump(const config_mgr_t *mgr, const void *default_options, /* XXX use a 1 here so we don't add a new log line while dumping */ if (default_options == NULL) { - if (fmt->validate_fn(NULL, defaults_tmp, defaults_tmp, 1, &msg) < 0) { + if (fmt->validate_fn(NULL, defaults_tmp, &msg) < 0) { // LCOV_EXCL_START log_err(LD_BUG, "Failed to validate default config: %s", msg); tor_free(msg); |