summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2006-08-05 09:23:06 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2006-08-05 09:23:06 +0000
commit46843b041fe03b87567f9a9a4c78e807182c73f6 (patch)
tree73b3a210ea59d2e2d7590136c11e1245f964aac0
parent72bcf614b2a5e5f281ca4372fa7dfccf1e6a3c43 (diff)
Relevant BUGIDs:
Purpose of commit: cleanup Commit summary: --------------- Fix compiler warning: 2006-08-05 Thorsten Kukuk <kukuk@thkukuk.de> * modules/pam_succeed_if/pam_succeed_if.c (evaluate): Cast svc variable to char pointer for snprintf.
-rw-r--r--ChangeLog5
-rw-r--r--modules/pam_succeed_if/pam_succeed_if.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 477cf3db..4fea8c6f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
-2006-08-05 Thorsten Kukuk <kukuk@thkukuk.de>
+2006-08-05 Thorsten Kukuk <kukuk@thkukuk.de>
+
+ * modules/pam_succeed_if/pam_succeed_if.c (evaluate): Cast
+ svc variable to char pointer for snprintf.
* configure.in: Generate xtests/Makefile.
* Makefile.am (SUBDIRS): Add xtests.
diff --git a/modules/pam_succeed_if/pam_succeed_if.c b/modules/pam_succeed_if/pam_succeed_if.c
index 9115a961..51510de8 100644
--- a/modules/pam_succeed_if/pam_succeed_if.c
+++ b/modules/pam_succeed_if/pam_succeed_if.c
@@ -275,7 +275,7 @@ evaluate(pam_handle_t *pamh, int debug,
const void *svc;
if (pam_get_item(pamh, PAM_SERVICE, &svc) != PAM_SUCCESS)
svc = "";
- snprintf(buf, sizeof(buf), "%s", svc);
+ snprintf(buf, sizeof(buf), "%s", (const char *)svc);
left = buf;
}
/* If we have no idea what's going on, return an error. */