Conditionalize debugging messages in !STDC, !GNUC case.

git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@151 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2002-05-24 15:04:27 +00:00
parent fb3aece812
commit 70792385d0
1 changed files with 4 additions and 1 deletions

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/lib/openpam_log.c#13 $
* $P4: //depot/projects/openpam/lib/openpam_log.c#14 $
*/
#include <ctype.h>
@ -106,6 +106,9 @@ openpam_log(int level, const char *fmt, ...)
switch (level) {
case PAM_LOG_DEBUG:
#ifndef DEBUG
return;
#endif
priority = LOG_DEBUG;
break;
case PAM_LOG_VERBOSE: