about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-01 10:07:42 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-01 10:07:42 +0200
commit9b514ad3d66631e99fb55082f84e931cf0865bc4 (patch)
treee7f5708a15dd607eb78317798f098d86e7b0729d /src/config
parent1224aa414e56a763412ee33c2b8779d4e6cb1608 (diff)
downloadprofani-tty-9b514ad3d66631e99fb55082f84e931cf0865bc4.tar.gz
files.c: use const char *const where appropriate
Diffstat (limited to 'src/config')
-rw-r--r--src/config/files.c4
-rw-r--r--src/config/files.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/config/files.c b/src/config/files.c
index 80a777ae..576303fb 100644
--- a/src/config/files.c
+++ b/src/config/files.c
@@ -113,7 +113,7 @@ files_get_inputrc_file(void)
 }
 
 char*
-files_get_log_file(char *log_file)
+files_get_log_file(const char *const log_file)
 {
     gchar *xdg_data = _files_get_xdg_data_home();
     GString *logfile = g_string_new(xdg_data);
@@ -140,7 +140,7 @@ files_get_log_file(char *log_file)
 }
 
 gchar*
-files_get_config_path(char *config_base)
+files_get_config_path(const char *const config_base)
 {
     gchar *xdg_config = _files_get_xdg_config_home();
     GString *file_str = g_string_new(xdg_config);
diff --git a/src/config/files.h b/src/config/files.h
index 7b6b37a5..2a74793f 100644
--- a/src/config/files.h
+++ b/src/config/files.h
@@ -60,11 +60,11 @@
 
 void files_create_directories(void);
 
-gchar* files_get_config_path(char *config_base);
+gchar* files_get_config_path(const char *const config_base);
 gchar* files_get_data_path(const char *const data_base);
 gchar* files_get_account_data_path(const char *const specific_dir, const char *const jid);
 
-gchar* files_get_log_file(char *log_file);
+gchar* files_get_log_file(const char *const log_file);
 gchar* files_get_inputrc_file(void);
 
 #endif