summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorUri Simchoni <uri@samba.org>2017-11-19 13:15:12 +0000
committerAndrew Bartlett <abartlet@samba.org>2017-11-24 01:13:15 +0100
commit786e3c1d82fdb25510d4d257ec993e5b236f78b3 (patch)
treec3b6ebba4104a00148cae90a20867b2bc49eca3b /nsswitch
parent11c95b8c8dc8ba9db5b7a657ca1e77fac63b8cf0 (diff)
downloadsamba-786e3c1d82fdb25510d4d257ec993e5b236f78b3.tar.gz
pam_winbind: fix const discard warnings
Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/pam_winbind.c4
1 files changed, 2 insertions, 2 deletions
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,