From c889fdb76089f9c6abff1269d1051c874e275547 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Wed, 12 May 2010 20:37:40 +0000 Subject: small compatibility improvements git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1100 ef36b2f9-881f-0410-afb5-c4e39611909c --- compat/pam_compat.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'compat') diff --git a/compat/pam_compat.h b/compat/pam_compat.h index f3607af..7556b36 100644 --- a/compat/pam_compat.h +++ b/compat/pam_compat.h @@ -50,12 +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, fmt...) pam_prompt(pamh,PAM_TEXT_INFO,NULL,__VA_ARGS__) +#define pam_info(pamh,format,args...) \ + pam_prompt(pamh,PAM_TEXT_INFO,NULL,format,##args) #endif /* not pam_info */ /* provide pam_error() if needed */ #ifndef pam_error -#define pam_error(pamh, fmt...) pam_prompt(pamh,PAM_ERROR_MSG,NULL,__VA_ARGS__) +#define pam_error(pamh,format,args...) \ + pam_prompt(pamh,PAM_ERROR_MSG,NULL,format,##args) #endif /* not pam_error */ /* fall back to using getpwnam() if pam_modutil_getpwnam() isn't defined */ -- cgit v1.2.2