Changeset 13 in openpam for trunk/include


Ignore:
Timestamp:
Feb 1, 2002, 9:35:31 PM (17 years ago)
Author:
Dag-Erling Smørgrav
Message:

Rename openpam_log() to _openpam_log(), add an argument for the
function name, and wrap it in a macro called openpam_log().

Sponsored by: DARPA, NAI Labs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/security/openpam.h

    r9 r13  
    5151 * Log to syslog
    5252 */
    53 void openpam_log(int _level,
     53void _openpam_log(int _level,
     54        const char *_func,
    5455        const char *_fmt,
    5556        ...);
     57
     58#ifdef __GNUC__
     59#define openpam_log(lvl, fmt...) \
     60        _openpam_log((lvl), __func__, ##fmt)
     61#else
     62#define openpam_log(lvl, fmt, ...) \
     63        _openpam_log((lvl), __func__, fmt, __VA_ARGS__)
     64#endif
    5665
    5766/*
Note: See TracChangeset for help on using the changeset viewer.