mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
files.c: use const char *const where appropriate
This commit is contained in:
parent
1224aa414e
commit
9b514ad3d6
@ -113,7 +113,7 @@ files_get_inputrc_file(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char*
|
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();
|
gchar *xdg_data = _files_get_xdg_data_home();
|
||||||
GString *logfile = g_string_new(xdg_data);
|
GString *logfile = g_string_new(xdg_data);
|
||||||
@ -140,7 +140,7 @@ files_get_log_file(char *log_file)
|
|||||||
}
|
}
|
||||||
|
|
||||||
gchar*
|
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();
|
gchar *xdg_config = _files_get_xdg_config_home();
|
||||||
GString *file_str = g_string_new(xdg_config);
|
GString *file_str = g_string_new(xdg_config);
|
||||||
|
@ -60,11 +60,11 @@
|
|||||||
|
|
||||||
void files_create_directories(void);
|
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_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_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);
|
gchar* files_get_inputrc_file(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user