summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-10-23 13:59:47 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-11-14 17:33:48 +0100
commit900897af8bc766306a4c6c20a488ecbe2313626f (patch)
treef20ff7665d6bee9d2b7b8517900e43ab8316ab33 /src/providers
parent27b65ed1ad28cd17e0cbe67bb3085d6be6e67ffb (diff)
downloadsssd-900897af8bc766306a4c6c20a488ecbe2313626f.tar.gz
sssd-900897af8bc766306a4c6c20a488ecbe2313626f.tar.xz
sssd-900897af8bc766306a4c6c20a488ecbe2313626f.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')
-rw-r--r--src/providers/krb5/krb5_utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/providers/krb5/krb5_utils.c b/src/providers/krb5/krb5_utils.c
index 6cfd48cf5..f99b0f99f 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