diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-10-23 13:59:47 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-12 20:37:16 +0100 |
commit | 53875df9ad6f0508ec6693cb14f24af3aeeb2eea (patch) | |
tree | 80d8aebe0fd28a67fde5ceb83527cb18fca148b8 /src/providers/krb5 | |
parent | 1f60f558ce39a31a457cdeed55c8a71a8b025faa (diff) | |
download | sssd-53875df9ad6f0508ec6693cb14f24af3aeeb2eea.tar.gz sssd-53875df9ad6f0508ec6693cb14f24af3aeeb2eea.tar.bz2 sssd-53875df9ad6f0508ec6693cb14f24af3aeeb2eea.zip |
KRB5: Rename variable to avoid shadowing a global declaration
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
Diffstat (limited to 'src/providers/krb5')
-rw-r--r-- | src/providers/krb5/krb5_utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/providers/krb5/krb5_utils.c b/src/providers/krb5/krb5_utils.c index 6cfd48cf..f99b0f99 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 |