]> git.michaelhowe.org Git - packages/o/openafs.git/commit
pam: Use PAM_CONST more often
authorAndrew Deason <adeason@sinenomine.net>
Wed, 13 Apr 2011 15:52:50 +0000 (10:52 -0500)
committerDerrick Brashear <shadow@dementix.org>
Fri, 16 Dec 2011 11:00:37 +0000 (03:00 -0800)
commite068045157d83312587d16c1600d8c7a0a93e2f9
treeb2f03f4db39214713405f49e34b1749bfd55fd62
parent5bef5346c23583ece8308163d85522d15f714475
pam: Use PAM_CONST more often

Some callers of pam_get_item et al were just casting their argument to
a const void **. Some PAM implementations (Linux) want a const void**,
but others (Solaris) do not. Use the PAM_CONST symbol already defined
by autoconf to declare or cast the relevant variable const or not as
appropriate.

Reviewed-on: http://gerrit.openafs.org/4470
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 78d1f8d88334f711eaaf6555d3a962a504d3e80e)

Change-Id: I831fa52c238a6cf7ef211e8198815c4420ae7dce
Reviewed-on: http://gerrit.openafs.org/6291
Tested-by: Derrick Brashear <shadow@dementix.org>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/pam/afs_auth.c
src/pam/afs_password.c
src/pam/afs_setcred.c