summaryrefslogtreecommitdiff
path: root/sss_client
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-03-25 09:49:53 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-03-25 09:55:56 -0400
commit8529f38c37a1d7dbd65c3cec405f9f0ba1d52406 (patch)
treefa564317b2b1e55a0f0afcc3e516378f7564af7e /sss_client
parent4358dd3e53614fe7185530dad849c9ded8ef45d1 (diff)
downloadsssd-8529f38c37a1d7dbd65c3cec405f9f0ba1d52406.tar.gz
sssd-8529f38c37a1d7dbd65c3cec405f9f0ba1d52406.tar.bz2
sssd-8529f38c37a1d7dbd65c3cec405f9f0ba1d52406.zip
Fix compilation error due to implicit cast
Diffstat (limited to 'sss_client')
-rw-r--r--sss_client/pam_sss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sss_client/pam_sss.c b/sss_client/pam_sss.c
index d919c1cf..6fb76370 100644
--- a/sss_client/pam_sss.c
+++ b/sss_client/pam_sss.c
@@ -73,7 +73,7 @@ static int eval_response(pam_handle_t *pamh, int buflen, uint8_t *buf)
D(("env item: [%s]", &buf[p]));
if (*type == PAM_ENV_ITEM || *type == ALL_ENV_ITEM) {
- ret = pam_putenv(pamh, &buf[p]);
+ ret = pam_putenv(pamh, (char *)&buf[p]);
if (ret != PAM_SUCCESS) {
D(("pam_putenv failed.\n"));
break;
@@ -81,7 +81,7 @@ static int eval_response(pam_handle_t *pamh, int buflen, uint8_t *buf)
}
if (*type == ENV_ITEM || *type == ALL_ENV_ITEM) {
- env_item = strdup(&buf[p]);
+ env_item = strdup((char *)&buf[p]);
if (env_item == NULL) {
D(("strdup failed\n"));
break;