summaryrefslogtreecommitdiffstats
path: root/contrib/openpam/modules
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-01-28 18:13:52 +0000
committerdim <dim@FreeBSD.org>2015-01-28 18:13:52 +0000
commit021a8716741b99922b09ba1f48d3fe7ce69e309f (patch)
tree1b32c4d5d515c19c086fb0829fa0acfabe628c67 /contrib/openpam/modules
parent56bc48c419f4d3081c91ff02e5f63bf97e26f6a8 (diff)
downloadFreeBSD-src-021a8716741b99922b09ba1f48d3fe7ce69e309f.zip
FreeBSD-src-021a8716741b99922b09ba1f48d3fe7ce69e309f.tar.gz
Apply changeset 854 from upstream openpam (by Dag-Erling Smørgrav):
Silence all remaining qual-cast warnings except in the test suite.
Diffstat (limited to 'contrib/openpam/modules')
-rw-r--r--contrib/openpam/modules/pam_unix/pam_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/openpam/modules/pam_unix/pam_unix.c b/contrib/openpam/modules/pam_unix/pam_unix.c
index ad7dd1b..f76651d 100644
--- a/contrib/openpam/modules/pam_unix/pam_unix.c
+++ b/contrib/openpam/modules/pam_unix/pam_unix.c
@@ -74,7 +74,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags,
#endif
struct passwd *pwd;
const char *user;
- char *crypt_password, *password;
+ const char *crypt_password, *password;
int pam_err, retry;
(void)argc;
@@ -98,7 +98,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags,
for (retry = 0; retry < 3; ++retry) {
#ifdef OPENPAM
pam_err = pam_get_authtok(pamh, PAM_AUTHTOK,
- (const char **)&password, NULL);
+ &password, NULL);
#else
resp = NULL;
pam_err = (*conv->conv)(1, &msgp, &resp, conv->appdata_ptr);
OpenPOWER on IntegriCloud