From: Jonathan Neuschäfer Date: Wed, 4 Jan 2012 19:36:04 +0000 (+0100) Subject: conf: rename get_user_key_binding_filename to build_* X-Git-Tag: release-0.20~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eb85a36df6649a4348b53bf6974a3283c3146de9;p=ncmpc.git conf: rename get_user_key_binding_filename to build_* This name is consistent with g_build_filename and it better reflects the fact that memory is allocatd by this function. --- diff --git a/src/conf.c b/src/conf.c index cf87c00..5f35d20 100644 --- a/src/conf.c +++ b/src/conf.c @@ -602,7 +602,7 @@ check_user_conf_dir(void) } char * -get_user_key_binding_filename(void) +build_user_key_binding_filename(void) { return g_build_filename(g_get_home_dir(), "." PACKAGE, "keys", NULL); } @@ -648,7 +648,7 @@ read_configuration(void) /* check for user key bindings ~/.ncmpc/keys */ if (filename == NULL) { - filename = get_user_key_binding_filename(); + filename = build_user_key_binding_filename(); if (!g_file_test(filename, G_FILE_TEST_IS_REGULAR)) { g_free(filename); filename = NULL; diff --git a/src/conf.h b/src/conf.h index a031ff6..b8e4ed2 100644 --- a/src/conf.h +++ b/src/conf.h @@ -21,7 +21,7 @@ int check_user_conf_dir(void); -char *get_user_key_binding_filename(void); +char *build_user_key_binding_filename(void); int read_configuration(void); diff --git a/src/screen_keydef.c b/src/screen_keydef.c index d768352..bb58139 100644 --- a/src/screen_keydef.c +++ b/src/screen_keydef.c @@ -115,7 +115,7 @@ save_keys(void) return -1; } - filename = get_user_key_binding_filename(); + filename = build_user_key_binding_filename(); if ((f = fopen(filename,"w")) == NULL) { screen_status_printf(_("Error: %s - %s"), filename, strerror(errno));