summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-08-30 23:52:15 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-03 21:01:16 +0200
commite882171a77b90745430d1680f4e59f4023567a91 (patch)
tree2f0f9e9d916a583f88b145bf439df6f3050bb992
parent58dee4047788964ed4b0f6c5d6512967f390ac21 (diff)
downloadsssd-e882171a77b90745430d1680f4e59f4023567a91.tar.gz
sssd-e882171a77b90745430d1680f4e59f4023567a91.tar.xz
sssd-e882171a77b90745430d1680f4e59f4023567a91.zip
KRB5: Fix warning declaration shadows global declaration
src/providers/krb5/krb5_utils.c:193: warning: declaration of 'rewind' shadows a global declaration /usr/include/stdio.h:754: warning: shadowed declaration is here
-rw-r--r--src/providers/krb5/krb5_utils.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/providers/krb5/krb5_utils.c b/src/providers/krb5/krb5_utils.c
index dc4c448e..df789215 100644
--- a/src/providers/krb5/krb5_utils.c
+++ b/src/providers/krb5/krb5_utils.c
@@ -190,7 +190,7 @@ char *expand_ccname_template(TALLOC_CTX *mem_ctx, struct krb5child_req *kr,
const char *cache_dir_tmpl;
TALLOC_CTX *tmp_ctx = NULL;
char action;
- bool rewind;
+ bool rerun;
*private_path = false;
@@ -223,10 +223,10 @@ char *expand_ccname_template(TALLOC_CTX *mem_ctx, struct krb5child_req *kr,
goto done;
}
- rewind = true;
+ rerun = true;
action = *n;
- while (rewind) {
- rewind = false;
+ while (rerun) {
+ rerun = false;
switch (action) {
case 'u':
if (kr->pd->user == NULL) {
@@ -332,19 +332,19 @@ char *expand_ccname_template(TALLOC_CTX *mem_ctx, struct krb5child_req *kr,
} else if (strncmp(n , S_EXP_UID, L_EXP_UID) == 0) {
action = 'U';
n += L_EXP_UID - 1;
- rewind = true;
+ rerun = true;
continue;
} else if (strncmp(n , S_EXP_USERID, L_EXP_USERID) == 0) {
action = 'U';
n += L_EXP_USERID - 1;
- rewind = true;
+ rerun = true;
continue;
} else if (strncmp(n , S_EXP_EUID, L_EXP_EUID) == 0) {
/* SSSD does not distinguish betwen uid and euid,
* so we treat both the same way */
action = 'U';
n += L_EXP_EUID - 1;
- rewind = true;
+ rerun = true;
continue;
} else if (strncmp(n , S_EXP_NULL, L_EXP_NULL) == 0) {
/* skip immediately */
@@ -352,7 +352,7 @@ char *expand_ccname_template(TALLOC_CTX *mem_ctx, struct krb5child_req *kr,
} else if (strncmp(n , S_EXP_USERNAME, L_EXP_USERNAME) == 0) {
action = 'u';
n += L_EXP_USERNAME - 1;
- rewind = true;
+ rerun = true;
continue;
} else if (strncmp(n , S_EXP_LIBDIR, L_EXP_LIBDIR) == 0) {
/* skip, only the libkrb5 library can resolve this */