diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-05-03 13:42:55 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-05-03 13:42:55 +0000 |
commit | cb63b0d97177240f17dbf0a951e9ed1b1103947f (patch) | |
tree | 4acea7e292327e88f64c3867716c09aeecaf115e /sbin/isakmpd/log.c | |
parent | 0abf960e363302baa2c0397873d3df08b798e323 (diff) |
provide log_fatalx() function, that does not print an error string (like err
vs. errx). Not used yet.
ok moritz@
Diffstat (limited to 'sbin/isakmpd/log.c')
-rw-r--r-- | sbin/isakmpd/log.c | 13 |
1 files changed, 12 insertions, 1 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; |