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

expanded twice (perforce change 9853)
This commit is contained in:
des 2002-04-16 21:34:41 +00:00
parent bd0bbd9f7b
commit 8161706dd9

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)