diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:29 +0200 |
commit | 08c055113f2eacd42fde57b952b548ca45e29eb2 (patch) | |
tree | 2b9a9c41709396532d52020f6c980077748033c8 /src/conf.c | |
parent | 8fd244cc61c74522b93b59e75594902a01f936b5 (diff) | |
download | mpd-08c055113f2eacd42fde57b952b548ca45e29eb2.tar.gz mpd-08c055113f2eacd42fde57b952b548ca45e29eb2.tar.xz mpd-08c055113f2eacd42fde57b952b548ca45e29eb2.zip |
fix shadow warnings
Rename local variables and function parameters, so they don't shadow
global variables.
Diffstat (limited to '')
-rw-r--r-- | src/conf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/conf.c b/src/conf.c index e4b6b70c5..5792dd22f 100644 --- a/src/conf.c +++ b/src/conf.c @@ -596,15 +596,15 @@ int check_user_conf_dir(void) { int retval; - char *dirname = g_build_filename(g_get_home_dir(), "." PACKAGE, NULL); + char *directory = g_build_filename(g_get_home_dir(), "." PACKAGE, NULL); - if (g_file_test(dirname, G_FILE_TEST_IS_DIR)) { - g_free(dirname); + if (g_file_test(directory, G_FILE_TEST_IS_DIR)) { + g_free(directory); return 0; } - retval = mkdir(dirname, 0755); - g_free(dirname); + retval = mkdir(directory, 0755); + g_free(directory); return retval; } |