diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-19 19:39:42 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-19 19:39:42 +0000 |
commit | 3923126b85f9e8a77cab9a41b5a62125acd5b4cd (patch) | |
tree | 1a8b19c5db03f8c989fc8228811837b182feb7a3 /sbin/isakmpd/log.c | |
parent | cc03bdb70090357d2393b6ec82e3cde4d5ce5edd (diff) |
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Diffstat (limited to 'sbin/isakmpd/log.c')
-rw-r--r-- | sbin/isakmpd/log.c | 53 |
1 files changed, 1 insertions, 52 deletions
diff --git a/sbin/isakmpd/log.c b/sbin/isakmpd/log.c index 7015b74c631..304bebd75a0 100644 --- a/sbin/isakmpd/log.c +++ b/sbin/isakmpd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.26 2002/01/23 18:44:47 ho Exp $ */ +/* $OpenBSD: log.c,v 1.27 2002/02/19 19:39:38 millert Exp $ */ /* $EOM: log.c,v 1.30 2000/09/29 08:19:23 niklas Exp $ */ /* @@ -62,12 +62,7 @@ #include <stdlib.h> #include <string.h> #include <syslog.h> - -#ifdef __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif #include "isakmp_num.h" #include "log.h" @@ -202,15 +197,7 @@ _log_print (int error, int syslog_level, const char *fmt, va_list ap, #ifdef USE_DEBUG void -#ifdef __STDC__ log_debug (int cls, int level, const char *fmt, ...) -#else -log_debug (cls, level, fmt, va_alist) - int cls; - int level; - const char *fmt; - va_dcl -#endif { va_list ap; @@ -219,12 +206,7 @@ log_debug (cls, level, fmt, va_alist) */ if (cls >= 0 && (log_level[cls] == 0 || level > log_level[cls])) return; -#ifdef __STDC__ va_start (ap, fmt); -#else - va_start (ap); - fmt = va_arg (ap, const char *); -#endif _log_print (0, LOG_DEBUG, fmt, ap, cls, level); va_end (ap); } @@ -313,64 +295,31 @@ log_debug_toggle (void) #endif /* USE_DEBUG */ void -#ifdef __STDC__ log_print (const char *fmt, ...) -#else -log_print (fmt, va_alist) - const char *fmt; - va_dcl -#endif { va_list ap; -#ifdef __STDC__ va_start (ap, fmt); -#else - va_start (ap); - fmt = va_arg (ap, const char *); -#endif _log_print (0, LOG_NOTICE, fmt, ap, LOG_PRINT, 0); va_end (ap); } void -#ifdef __STDC__ log_error (const char *fmt, ...) -#else -log_error (fmt, va_alist) - const char *fmt; - va_dcl -#endif { va_list ap; -#ifdef __STDC__ va_start (ap, fmt); -#else - va_start (ap); - fmt = va_arg (ap, const char *); -#endif _log_print (1, LOG_ERR, fmt, ap, LOG_PRINT, 0); va_end (ap); } void -#ifdef __STDC__ log_fatal (const char *fmt, ...) -#else -log_fatal (fmt, va_alist) - const char *fmt; - va_dcl -#endif { va_list ap; -#ifdef __STDC__ va_start (ap, fmt); -#else - va_start (ap); - fmt = va_arg (ap, const char *); -#endif _log_print (1, LOG_CRIT, fmt, ap, LOG_PRINT, 0); va_end (ap); exit (1); |