]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs:
authorThorsten Kukuk <kukuk@thkukuk.de>
Sat, 5 Aug 2006 09:23:06 +0000 (09:23 +0000)
committerThorsten Kukuk <kukuk@thkukuk.de>
Sat, 5 Aug 2006 09:23:06 +0000 (09:23 +0000)
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.

ChangeLog
modules/pam_succeed_if/pam_succeed_if.c

index 477cf3dba7a4999313335caff08c4b93443b008b..4fea8c6fb312d3e97d8f0d274d61fd44c2dae826 100644 (file)
--- 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.
index 9115a9615eb2e4fb8b7e4c778940204f3d1818a0..51510de88c8c8f9f0986b8857449da2b7ce18c48 100644 (file)
@@ -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. */