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/photurisd | |
parent | cc03bdb70090357d2393b6ec82e3cde4d5ce5edd (diff) |
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Diffstat (limited to 'sbin/photurisd')
-rw-r--r-- | sbin/photurisd/log.c | 52 |
1 files changed, 1 insertions, 51 deletions
diff --git a/sbin/photurisd/log.c b/sbin/photurisd/log.c index 964bbbda4f2..06aebe15216 100644 --- a/sbin/photurisd/log.c +++ b/sbin/photurisd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.2 2001/08/18 20:50:02 deraadt Exp $ */ +/* $OpenBSD: log.c,v 1.3 2002/02/19 19:39:38 millert Exp $ */ /* $EOM: log.c,v 1.30 2000/09/29 08:19:23 niklas Exp $ */ /* @@ -40,11 +40,7 @@ #include <stdio.h> #include <string.h> #include <syslog.h> -#ifdef __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif #include "log.h" @@ -151,15 +147,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; @@ -168,12 +156,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); } @@ -243,64 +226,31 @@ log_debug_cmd (int cls, int level) #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); |