summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-10-30 16:26:37 +1000
committerteor <teor@torproject.org>2019-10-31 10:53:26 +1000
commit4666ca73a1af2d60398f2a08d9110f42a6a37e1b (patch)
treeface165586f139cbe7256a9f8da1a2069db20362 /src/app
parenta6ad26fd5fdfcad209d8263b4ea2a83b4a44c296 (diff)
downloadtor-4666ca73a1af2d60398f2a08d9110f42a6a37e1b.tar.gz
tor-4666ca73a1af2d60398f2a08d9110f42a6a37e1b.zip
config: Give warn_about_relative_paths() const args
Also gives make_path_absolute() const args. Obviously correct fixes to already reviewed code.
Diffstat (limited to 'src/app')
-rw-r--r--src/app/config/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index 14376e56ae..9b75f96a83 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -3303,7 +3303,7 @@ options_validate(const or_options_t *old_options, or_options_t *options,
*/
static int
warn_if_option_path_is_relative(const char *option,
- char *filepath)
+ const char *filepath)
{
if (filepath && path_is_relative(filepath)) {
char *abs_path = make_path_absolute(filepath);
@@ -3321,7 +3321,7 @@ warn_if_option_path_is_relative(const char *option,
* Return 1 if there were relative paths; 0 otherwise.
*/
static int
-warn_about_relative_paths(or_options_t *options)
+warn_about_relative_paths(const or_options_t *options)
{
tor_assert(options);
int n = 0;