From 786e3c1d82fdb25510d4d257ec993e5b236f78b3 Mon Sep 17 00:00:00 2001 From: Uri Simchoni Date: Sun, 19 Nov 2017 13:15:12 +0000 Subject: pam_winbind: fix const discard warnings Signed-off-by: Uri Simchoni Reviewed-by: Andrew Bartlett --- nsswitch/pam_winbind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nsswitch') diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c index 4ae646442f8..3723b17ad42 100644 --- a/nsswitch/pam_winbind.c +++ b/nsswitch/pam_winbind.c @@ -671,7 +671,7 @@ static int converse(const pam_handle_t *pamh, struct pam_response **response) { int retval; - struct pam_conv *conv; + const struct pam_conv *conv; retval = pam_get_item(pamh, PAM_CONV, (const void **) &conv); if (retval == PAM_SUCCESS) { @@ -2993,7 +2993,7 @@ static bool _pam_require_krb5_auth_after_chauthtok(struct pwb_context *ctx, * --- BoYang * */ - char *new_authtok_reqd_during_auth = NULL; + const char *new_authtok_reqd_during_auth = NULL; struct passwd *pwd = NULL; pam_get_data(ctx->pamh, PAM_WINBIND_NEW_AUTHTOK_REQD_DURING_AUTH, -- cgit v1.2.1