pam_winbind: fix const discard warnings
authorUri Simchoni <uri@samba.org>
Sun, 19 Nov 2017 13:15:12 +0000 (13:15 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 24 Nov 2017 00:13:15 +0000 (01:13 +0100)
Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
nsswitch/pam_winbind.c

index 4ae646442f8af15b368a4ea1857d778036cda09e..3723b17ad42aea8b86e36db3a99fa94f26da0640 100644 (file)
@@ -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,