nss-pam-ldapd commit: r1163 - nss-pam-ldapd/compat
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1163 - nss-pam-ldapd/compat
- From: "Commits of the nss-pam-ldapd project." <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1163 - nss-pam-ldapd/compat
- Date: Sun, 18 Jul 2010 13:23:54 +0200 (CEST)
Author: arthur
Date: Sun Jul 18 13:23:52 2010
New Revision: 1163
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1163
Log:
define pam_info(), pam_error() and pam_syslog() compatibility macros to allow
no arguments for format
Modified:
nss-pam-ldapd/compat/pam_compat.h
Modified: nss-pam-ldapd/compat/pam_compat.h
==============================================================================
--- nss-pam-ldapd/compat/pam_compat.h Sat Jul 17 21:09:21 2010 (r1162)
+++ nss-pam-ldapd/compat/pam_compat.h Sun Jul 18 13:23:52 2010 (r1163)
@@ -50,14 +50,14 @@
/* provide pam_info() if needed */
#ifndef pam_info
-#define pam_info(pamh,format,args...) \
- pam_prompt(pamh,PAM_TEXT_INFO,NULL,format,##args)
+#define pam_info(pamh,format...) \
+ pam_prompt(pamh,PAM_TEXT_INFO,NULL,##format)
#endif /* not pam_info */
/* provide pam_error() if needed */
#ifndef pam_error
-#define pam_error(pamh,format,args...) \
- pam_prompt(pamh,PAM_ERROR_MSG,NULL,format,##args)
+#define pam_error(pamh,format...) \
+ pam_prompt(pamh,PAM_ERROR_MSG,NULL,##format)
#endif /* not pam_error */
/* fall back to using getpwnam() if pam_modutil_getpwnam() isn't defined */
@@ -72,8 +72,8 @@
#ifndef LOG_AUTHPRIV
#define LOG_AUTHPRIV LOG_AUTH
#endif /* not LOG_AUTHPRIV */
-#define pam_syslog(pamh,priority,format,args...) \
- syslog(LOG_AUTHPRIV|(priority),format,##args)
+#define pam_syslog(pamh,priority,format...) \
+ syslog(LOG_AUTHPRIV|(priority),##format)
#endif /* not HAVE_PAM_SYSLOG */
#endif /* _COMPAT_LDAP_COMPAT_H */
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits
- nss-pam-ldapd commit: r1163 - nss-pam-ldapd/compat,
Commits of the nss-pam-ldapd project.