mirror of
https://github.com/opnsense/src.git
synced 2026-04-28 01:28:00 -04:00
Fix braino in the openpam_log() macro that caused the arguments to be
expanded twice (perforce change 9853)
This commit is contained in:
parent
69665ef57f
commit
bdcb69e2b5
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/include/security/openpam.h#17 $
|
||||
* $P4: //depot/projects/openpam/include/security/openpam.h#18 $
|
||||
*/
|
||||
|
||||
#ifndef _SECURITY_OPENPAM_H_INCLUDED
|
||||
|
|
@ -142,7 +142,7 @@ _openpam_log(int _level,
|
|||
_openpam_log((lvl), __func__, fmt, __VA_ARGS__)
|
||||
#elif defined(__GNUC__) && (__GNUC__ >= 2) && (__GNUC_MINOR__ >= 95)
|
||||
#define openpam_log(lvl, fmt...) \
|
||||
_openpam_log((lvl), __func__, fmt, ##fmt)
|
||||
_openpam_log((lvl), __func__, ##fmt)
|
||||
#elif defined(__GNUC__) && defined(__FUNCTION__)
|
||||
#define openpam_log(lvl, fmt...) \
|
||||
_openpam_log((lvl), __FUNCTION__, ##fmt)
|
||||
|
|
|
|||
Loading…
Reference in a new issue