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.
-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.
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. */