diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-10-15 12:10:38 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-10-17 13:17:26 +0200 |
commit | 89e890c034474fcd6e5bf7148ab0c44a6b2477d5 (patch) | |
tree | 5a12421baa9277adc7a40cd1014d5a7fb02fa709 /src/providers/krb5/krb5_common.c | |
parent | fe4e8444d47e4268c11a681b6cd4dd8b0840a168 (diff) | |
download | sssd-89e890c034474fcd6e5bf7148ab0c44a6b2477d5.tar.gz sssd-89e890c034474fcd6e5bf7148ab0c44a6b2477d5.tar.bz2 sssd-89e890c034474fcd6e5bf7148ab0c44a6b2477d5.zip |
heimdal: Rename krb5_realm since thats a type in heimdal
Fixes -Wshadow warning.
find -name '*.c' -exec sed -i \
-e 's/\([^"_]\)krb5_realm\([^"_]\)/\1krb5_realm_str\2/' \
-e 's/\(Missing krb5_realm\)_str/\1/' \
-e 's/\(No explicit krb5_realm\)_str/\1'
{} +
Diffstat (limited to 'src/providers/krb5/krb5_common.c')
-rw-r--r-- | src/providers/krb5/krb5_common.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/providers/krb5/krb5_common.c b/src/providers/krb5/krb5_common.c index 63d81d6d..4ab359e8 100644 --- a/src/providers/krb5/krb5_common.c +++ b/src/providers/krb5/krb5_common.c @@ -895,7 +895,7 @@ errno_t krb5_install_offline_callback(struct be_ctx *be_ctx, { int ret; struct remove_info_files_ctx *ctx; - const char *krb5_realm; + const char *krb5_realm_str; if (krb5_ctx->service == NULL || krb5_ctx->service->name == NULL) { DEBUG(1, ("Missing KDC service name!\n")); @@ -908,14 +908,14 @@ errno_t krb5_install_offline_callback(struct be_ctx *be_ctx, return ENOMEM; } - krb5_realm = dp_opt_get_cstring(krb5_ctx->opts, KRB5_REALM); - if (krb5_realm == NULL) { + krb5_realm_str = dp_opt_get_cstring(krb5_ctx->opts, KRB5_REALM); + if (krb5_realm_str == NULL) { DEBUG(1, ("Missing krb5_realm option!\n")); ret = EINVAL; goto done; } - ctx->realm = talloc_strdup(ctx, krb5_realm); + ctx->realm = talloc_strdup(ctx, krb5_realm_str); if (ctx->realm == NULL) { DEBUG(1, ("talloc_strdup failed!\n")); ret = ENOMEM; @@ -950,19 +950,19 @@ done: errno_t krb5_install_sigterm_handler(struct tevent_context *ev, struct krb5_ctx *krb5_ctx) { - const char *krb5_realm; + const char *krb5_realm_str; char *sig_realm; struct tevent_signal *sige; BlockSignals(false, SIGTERM); - krb5_realm = dp_opt_get_cstring(krb5_ctx->opts, KRB5_REALM); - if (krb5_realm == NULL) { + krb5_realm_str = dp_opt_get_cstring(krb5_ctx->opts, KRB5_REALM); + if (krb5_realm_str == NULL) { DEBUG(1, ("Missing krb5_realm option!\n")); return EINVAL; } - sig_realm = talloc_strdup(krb5_ctx, krb5_realm); + sig_realm = talloc_strdup(krb5_ctx, krb5_realm_str); if (sig_realm == NULL) { DEBUG(1, ("talloc_strdup failed!\n")); return ENOMEM; |