diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-08 11:37:46 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-10-08 12:59:22 -0400 |
commit | 911b16e6e7ba657024734e7a36fad56c22c740a9 (patch) | |
tree | d4fb57496a4b4f1273938bd48d94eaa8e7264cf8 /src/app/config/config.c | |
parent | bd5ce112c92b81a98023513a53ecd64cf44122fe (diff) | |
download | tor-911b16e6e7ba657024734e7a36fad56c22c740a9.tar.gz tor-911b16e6e7ba657024734e7a36fad56c22c740a9.zip |
config.c: make a couple of arguments const.
These functions do not modify their inputs, so they can take const
arguments.
Diffstat (limited to 'src/app/config/config.c')
-rw-r--r-- | src/app/config/config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c index 26b1048022..1abe1e13a3 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -5060,12 +5060,12 @@ normalize_nickname_list(config_line_t **normalized_out, * filename if it doesn't exist. */ static char * -find_torrc_filename(config_line_t *cmd_arg, +find_torrc_filename(const config_line_t *cmd_arg, int defaults_file, int *using_default_fname, int *ignore_missing_torrc) { char *fname=NULL; - config_line_t *p_index; + const config_line_t *p_index; const char *fname_opt = defaults_file ? "--defaults-torrc" : "-f"; const char *ignore_opt = defaults_file ? NULL : "--ignore-missing-torrc"; @@ -5144,7 +5144,7 @@ load_torrc_from_stdin(void) * Return the contents of the file on success, and NULL on failure. */ static char * -load_torrc_from_disk(config_line_t *cmd_arg, int defaults_file) +load_torrc_from_disk(const config_line_t *cmd_arg, int defaults_file) { char *fname=NULL; char *cf = NULL; |