From eb85a36df6649a4348b53bf6974a3283c3146de9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonathan=20Neusch=C3=A4fer?= Date: Wed, 4 Jan 2012 20:36:04 +0100 Subject: [PATCH] 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. --- src/conf.c | 4 ++-- src/conf.h | 2 +- src/screen_keydef.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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)); -- 2.30.2