use config_get_string() instead of config_get_param()

config_get_string() is easier to use than config_get_param() because
it unpacks the config_param struct.
This commit is contained in:
Max Kellermann
2009-01-25 16:00:51 +01:00
parent bdfb6c239a
commit 80799fa84e
5 changed files with 24 additions and 31 deletions

View File

@@ -66,13 +66,10 @@ const char *path_get_fs_charset(void)
void path_global_init(void)
{
struct config_param *fs_charset_param =
config_get_param(CONF_FS_CHARSET);
const char *charset = NULL;
if (fs_charset_param) {
charset = fs_charset_param->value;
} else {
charset = config_get_string(CONF_FS_CHARSET, NULL);
if (charset == NULL) {
const gchar **encodings;
g_get_filename_charsets(&encodings);