From 82a6d21d8cbd0c6076c7c78807eb875d4d97f1ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Fri, 3 Jan 2003 03:30:52 +0000 Subject: [PATCH] Fix a typo in the active version of RETURNC(), and a cosmetic nit in the active version of RETURNI(). git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@191 185d5e19-27fe-0310-9dcf-9bff6b9f3609 --- lib/openpam_impl.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/openpam_impl.h b/lib/openpam_impl.h index 96e3b7b..87818b6 100644 --- a/lib/openpam_impl.h +++ b/lib/openpam_impl.h @@ -31,7 +31,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/openpam/lib/openpam_impl.h#18 $ + * $P4: //depot/projects/openpam/lib/openpam_impl.h#19 $ */ #ifndef _OPENPAM_IMPL_H_INCLUDED @@ -125,15 +125,15 @@ pam_module_t *openpam_dynamic(const char *); #define ENTER() openpam_log(PAM_LOG_DEBUG, "entering") #define RETURNV() openpam_log(PAM_LOG_DEBUG, "returning") #define RETURNC(c) do { \ - if ((c) >= 0 && (c) < PAM_NUM_ERRORS) + if ((c) >= 0 && (c) < PAM_NUM_ERRORS) \ openpam_log(PAM_LOG_DEBUG, "returning %s", _pam_err_name[c]); \ else \ openpam_log(PAM_LOG_DEBUG, "returning %d!", (c)); \ return (c); \ } while (0) -#define RETURNI(n) do { \ - openpam_log(PAM_LOG_DEBUG, "returning %d", (n)); \ - return (n); \ +#define RETURNI(i) do { \ + openpam_log(PAM_LOG_DEBUG, "returning %d", (i)); \ + return (i); \ } while (0) #define RETURNP(p) do { \ if ((p) == NULL) \