Changeset 191 in openpam for trunk/lib


Ignore:
Timestamp:
Jan 3, 2003, 3:30:52 AM (17 years ago)
Author:
Dag-Erling Smørgrav
Message:

Fix a typo in the active version of RETURNC(), and a cosmetic nit
in the active version of RETURNI().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_impl.h

    r189 r191  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/lib/openpam_impl.h#18 $
     34 * $P4: //depot/projects/openpam/lib/openpam_impl.h#19 $
    3535 */
    3636
     
    126126#define RETURNV() openpam_log(PAM_LOG_DEBUG, "returning")
    127127#define RETURNC(c) do { \
    128         if ((c) >= 0 && (c) < PAM_NUM_ERRORS)
     128        if ((c) >= 0 && (c) < PAM_NUM_ERRORS) \
    129129                openpam_log(PAM_LOG_DEBUG, "returning %s", _pam_err_name[c]); \
    130130        else \
     
    132132        return (c); \
    133133} while (0)
    134 #define RETURNI(n) do { \
    135         openpam_log(PAM_LOG_DEBUG, "returning %d", (n)); \
    136         return (n); \
     134#define RETURNI(i) do { \
     135        openpam_log(PAM_LOG_DEBUG, "returning %d", (i)); \
     136        return (i); \
    137137} while (0)
    138138#define RETURNP(p) do { \
Note: See TracChangeset for help on using the changeset viewer.