aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-15 12:27:29 +0200
committerMax Kellermann <max@duempel.org>2008-09-15 12:27:29 +0200
commit08c055113f2eacd42fde57b952b548ca45e29eb2 (patch)
tree2b9a9c41709396532d52020f6c980077748033c8 /src/conf.c
parent8fd244cc61c74522b93b59e75594902a01f936b5 (diff)
downloadmpd-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.c10
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;
}