diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-02 20:35:23 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-02 20:35:23 +0000 |
commit | 8439c4ec2f96d60c4801a87efdfd8707606dcf62 (patch) | |
tree | 8322c1d7dedb8afa0cfe16c6cc260a6e85193dae /src/or/config.c | |
parent | f4f780b526df83032748782fb5917a7ee7412902 (diff) | |
download | tor-8439c4ec2f96d60c4801a87efdfd8707606dcf62.tar tor-8439c4ec2f96d60c4801a87efdfd8707606dcf62.tar.gz |
r15512@catbus: nickm | 2007-10-02 16:27:43 -0400
Make some functions static; remove some dead code.
svn:r11750
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/config.c b/src/or/config.c index 3fa0460a4..380e97bac 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -611,6 +611,8 @@ static config_line_t *get_assigned_option(config_format_t *fmt, static void config_init(config_format_t *fmt, void *options); static int or_state_validate(or_state_t *old_options, or_state_t *options, int from_setconf, char **msg); +static int or_state_load(void); +static int options_init_logs(or_options_t *options, int validate_only); static uint64_t config_parse_memunit(const char *s, int *ok); static int config_parse_interval(const char *s, int *ok); @@ -2331,7 +2333,7 @@ config_dump(config_format_t *fmt, void *options, int minimal, * the configuration in <b>options</b>. If <b>minimal</b> is true, do not * include options that are the same as Tor's defaults. */ -char * +static char * options_dump(or_options_t *options, int minimal) { return config_dump(&options_format, options, minimal, 0); @@ -3515,7 +3517,7 @@ parse_log_severity_range(const char *range, int *min_out, int *max_out) /** * Initialize the logs based on the configuration file. */ -int +static int options_init_logs(or_options_t *options, int validate_only) { config_line_t *opt; @@ -4366,7 +4368,7 @@ or_state_set(or_state_t *new_state) /** Reload the persistent state from disk, generating a new state as needed. * Return 0 on success, less than 0 on failure. */ -int +static int or_state_load(void) { or_state_t *new_state = NULL; |