From 525814d91b50a16689f344b9f9be2596cbb41b68 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh@redhat.com>
Date: Wed, 25 Mar 2009 09:49:53 -0400
Subject: [PATCH] Fix compilation error due to implicit cast

---
 sss_client/pam_sss.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sss_client/pam_sss.c b/sss_client/pam_sss.c
index d919c1c..6fb7637 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;
-- 
1.6.0.6

