pam: Clear up PAM_CONST related warnings on Linux
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 16 Apr 2011 15:22:54 +0000 (11:22 -0400)
committerDerrick Brashear <shadow@dementia.org>
Tue, 26 Apr 2011 02:07:40 +0000 (19:07 -0700)
commit3ea39166d64d2e66cddef015734c2f91548423af
treeb39c077c88bc783410ba14773220e09aeec5e497
parent3cb97cdaa867b0d9fef84c683251a0a8f59a1519
pam: Clear up PAM_CONST related warnings on Linux

Commit 78d1f8d8 expanded the use of PAM_CONST and introduced many
new warnings on Linux where pam expects "const" arguments.

This clears up the warnings by doing the following:
- Cast "user" to char * when kalling ka* functions
- Change the signature of pam_afs_prompt and pam_afs_printf to use
PAM_CONST
- Use a separate non-const password pointer for pam_afs_prompt

Change-Id: I460e1d1ca763f0aea5edcdaa208b9d4b8299ded0
Reviewed-on: http://gerrit.openafs.org/4487
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/pam/afs_auth.c
src/pam/afs_pam_msg.c
src/pam/afs_pam_msg.h
src/pam/afs_password.c
src/pam/afs_setcred.c