diff options
-rw-r--r-- | sbin/isakmpd/log.c | 13 | ||||
-rw-r--r-- | sbin/isakmpd/log.h | 4 |
2 files changed, 15 insertions, 2 deletions
diff --git a/sbin/isakmpd/log.c b/sbin/isakmpd/log.c index 8e17b1592e6..b1eae0224aa 100644 --- a/sbin/isakmpd/log.c +++ b/sbin/isakmpd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.56 2005/04/08 19:40:03 deraadt Exp $ */ +/* $OpenBSD: log.c,v 1.57 2005/05/03 13:42:54 hshoexer Exp $ */ /* $EOM: log.c,v 1.30 2000/09/29 08:19:23 niklas Exp $ */ /* @@ -365,6 +365,17 @@ log_fatal(const char *fmt, ...) } void +log_fatalx(const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + _log_print(0, LOG_CRIT, fmt, ap, LOG_PRINT, 0); + va_end(ap); + monitor_exit(1); +} + +void log_packet_init(char *newname) { struct pcap_file_header sf_hdr; diff --git a/sbin/isakmpd/log.h b/sbin/isakmpd/log.h index 7c435896c63..bb83e44b71e 100644 --- a/sbin/isakmpd/log.h +++ b/sbin/isakmpd/log.h @@ -1,4 +1,4 @@ -/* $OpenBSD: log.h,v 1.22 2005/04/08 19:40:03 deraadt Exp $ */ +/* $OpenBSD: log.h,v 1.23 2005/05/03 13:42:54 hshoexer Exp $ */ /* $EOM: log.h,v 1.19 2000/03/30 14:27:23 ho Exp $ */ /* @@ -82,6 +82,8 @@ extern void log_error(const char *,...) __attribute__((__format__(__printf__, 1, 2))); extern void log_fatal(const char *,...) __attribute__((__format__(__printf__, 1, 2))); +extern void log_fatalx(const char *,...) + __attribute__((__format__(__printf__, 1, 2))); extern void log_print(const char *,...) __attribute__((__format__(__printf__, 1, 2))); extern void log_verbose(const char *,...) |