Fix braino in the openpam_log() macro that caused the arguments to be

expanded twice (perforce change 9853)
This commit is contained in:
Dag-Erling Smørgrav 2002-04-16 21:34:41 +00:00
parent 69665ef57f
commit bdcb69e2b5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor/openpam/dist/; revision=94878

View File

@ -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)