summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2010-07-18 11:23:52 +0000
committerArthur de Jong <arthur@arthurdejong.org>2010-07-18 11:23:52 +0000
commit6b045d7a2ffde685d377ebb240428b1d809764b3 (patch)
tree4eea7e5786463f684e742f0ba3902f86e87a4222 /compat
parentd22dbc6e6134e2b7509921570c86213d2c20098a (diff)
define pam_info(), pam_error() and pam_syslog() compatibility macros to allow no arguments for format
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1163 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'compat')
-rw-r--r--compat/pam_compat.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/compat/pam_compat.h b/compat/pam_compat.h
index d9410ad..b4b5397 100644
--- a/compat/pam_compat.h
+++ b/compat/pam_compat.h
@@ -50,14 +50,14 @@ int pam_prompt(pam_handle_t *pamh,int style,char **response,const char *format,.
/* 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 @@ int pam_prompt(pam_handle_t *pamh,int style,char **response,const char *format,.
#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 */