summaryrefslogtreecommitdiff
path: root/src/or/config.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-09-02 15:00:09 -0400
committerNick Mathewson <nickm@torproject.org>2013-09-13 12:36:40 -0400
commit7972af7073a621f3affa69d04bd05e0e432d7309 (patch)
tree481943c2867f718d2efd708a9c7ee7b253e9ede3 /src/or/config.h
parenta6cad4db7063885aee2eceea7c481bc7583e1a4f (diff)
downloadtor-7972af7073a621f3affa69d04bd05e0e432d7309.tar.gz
tor-7972af7073a621f3affa69d04bd05e0e432d7309.zip
Whoops; make options_validate conform to validate_fn_t.
This just goes to show: never cast a function pointer. Found while testing new command line parse logic. Bugfix on 1293835440dd4debf6fbfc66e755d9b9384aa362, which implemented 6752: Not in any released tor.
Diffstat (limited to 'src/or/config.h')
-rw-r--r--src/or/config.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/config.h b/src/or/config.h
index 0ed5a5b5f8..8ee2a45725 100644
--- a/src/or/config.h
+++ b/src/or/config.h
@@ -32,7 +32,11 @@ int resolve_my_address(int warn_severity, const or_options_t *options,
const char **method_out, char **hostname_out);
int is_local_addr(const tor_addr_t *addr);
void options_init(or_options_t *options);
-char *options_dump(const or_options_t *options, int minimal);
+
+#define OPTIONS_DUMP_MINIMAL 1
+#define OPTIONS_DUMP_DEFAULTS 2
+#define OPTIONS_DUMP_ALL 3
+char *options_dump(const or_options_t *options, int how_to_dump);
int options_init_from_torrc(int argc, char **argv);
setopt_err_t options_init_from_string(const char *cf_defaults, const char *cf,
int command, const char *command_arg, char **msg);