aboutsummaryrefslogtreecommitdiff
path: root/src/lib/fs
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/lib/fs
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/lib/fs')
-rw-r--r--src/lib/fs/path.c2
-rw-r--r--src/lib/fs/path.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/fs/path.c b/src/lib/fs/path.c
index 1b4bc74e96..9f297d98e8 100644
--- a/src/lib/fs/path.c
+++ b/src/lib/fs/path.c
@@ -258,7 +258,7 @@ alloc_getcwd(void)
* Return a newly allocated string, which may be a duplicate of <b>fname</b>.
*/
char *
-make_path_absolute(char *fname)
+make_path_absolute(const char *fname)
{
#ifdef _WIN32
char *absfname_malloced = _fullpath(NULL, fname, 1);
diff --git a/src/lib/fs/path.h b/src/lib/fs/path.h
index 28a1838b88..0c2a574941 100644
--- a/src/lib/fs/path.h
+++ b/src/lib/fs/path.h
@@ -25,6 +25,6 @@ char *expand_filename(const char *filename);
int path_is_relative(const char *filename);
void clean_fname_for_stat(char *name);
int get_parent_directory(char *fname);
-char *make_path_absolute(char *fname);
+char *make_path_absolute(const char *fname);
#endif /* !defined(TOR_PATH_H) */