Cleanup: gchar as gchar instead of char

Use gchar instead of char in most of the cases where gchar is intended.

Reason: improve compatibility and stability. Issue #1819

Minor refactoring.
This commit is contained in:
John Hernandez
2023-04-19 02:44:19 +02:00
parent faccf24c75
commit 7f3fca2bd0
26 changed files with 138 additions and 269 deletions

View File

@@ -114,7 +114,7 @@ files_get_inputrc_file(void)
return NULL;
}
char*
gchar*
files_get_log_file(const char* const log_file)
{
gchar* xdg_data = _files_get_xdg_data_home();
@@ -139,7 +139,7 @@ files_get_log_file(const char* const log_file)
g_string_append(logfile, ".log");
}
char* result = g_strdup(logfile->str);
gchar* result = g_strdup(logfile->str);
free(xdg_data);
g_string_free(logfile, TRUE);