summaryrefslogtreecommitdiffstats
path: root/contrib/openpam/lib
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/lib
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/lib')
-rw-r--r--contrib/openpam/lib/libpam/openpam_dispatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/openpam/lib/libpam/openpam_dispatch.c b/contrib/openpam/lib/libpam/openpam_dispatch.c
index 5fa068f..0cff631 100644
--- a/contrib/openpam/lib/libpam/openpam_dispatch.c
+++ b/contrib/openpam/lib/libpam/openpam_dispatch.c
@@ -117,7 +117,7 @@ openpam_dispatch(pam_handle_t *pamh,
openpam_log(PAM_LOG_LIBDEBUG, "calling %s() in %s",
pam_sm_func_name[primitive], chain->module->path);
r = (chain->module->func[primitive])(pamh, flags,
- chain->optc, (const char **)chain->optv);
+ chain->optc, (const char **)(intptr_t)chain->optv);
pamh->current = NULL;
openpam_log(PAM_LOG_LIBDEBUG, "%s: %s(): %s",
chain->module->path, pam_sm_func_name[primitive],
OpenPOWER on IntegriCloud