>From 7258245b8721d3dc219ccb0b0efac2bcffac868d Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 23 Oct 2012 13:59:47 +0200 Subject: [PATCH 1/2] KRB5: Rename variable to avoid shadowing a global declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/providers/krb5/krb5_utils.c: In function ‘cc_dir_create’: src/providers/krb5/krb5_utils.c:824: warning: declaration of ‘dirname’ shadows a global declaration /usr/include/libgen.h:27: warning: shadowed declaration is here --- src/providers/krb5/krb5_utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/providers/krb5/krb5_utils.c b/src/providers/krb5/krb5_utils.c index 6cfd48cf59a8d80214f5784dacdf79e5e30aa0f6..f99b0f99f2509ed8d3a6a6819cf4e3c0b87fba2a 100644 --- a/src/providers/krb5/krb5_utils.c +++ b/src/providers/krb5/krb5_utils.c @@ -947,15 +947,15 @@ errno_t cc_dir_create(const char *location, pcre *illegal_re, uid_t uid, gid_t gid, bool private_path) { - const char *dirname; + const char *dir_name; - dirname = sss_krb5_residual_check_type(location, SSS_KRB5_TYPE_DIR); - if (dirname == NULL) { + dir_name = sss_krb5_residual_check_type(location, SSS_KRB5_TYPE_DIR); + if (dir_name == NULL) { DEBUG(SSSDBG_CRIT_FAILURE, ("Bad residual type\n")); return EINVAL; } - return create_ccache_dir_head(dirname, illegal_re, uid, gid, private_path); + return create_ccache_dir_head(dir_name, illegal_re, uid, gid, private_path); } static krb5_error_code -- 1.7.12.1