diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-02-26 18:52:14 +0100 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-02-26 18:52:14 +0100 |
commit | 9c8edc96fcb30cb8a9b0bd87fc1903c6fb618c31 (patch) | |
tree | 6629fda33de38709acce44bd39cbd761adcb4270 /log.c | |
parent | - (bal) Update sshd_config CVSID (diff) | |
download | openssh-9c8edc96fcb30cb8a9b0bd87fc1903c6fb618c31.tar.xz openssh-9c8edc96fcb30cb8a9b0bd87fc1903c6fb618c31.zip |
- markus@cvs.openbsd.org 2002/02/22 12:20:34
[log.c log.h ssh-keyscan.c]
overwrite fatal() in ssh-keyscan.c; fixes pr 2354; ok provos@
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -34,7 +34,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: log.c,v 1.21 2002/02/04 12:15:25 markus Exp $"); +RCSID("$OpenBSD: log.c,v 1.22 2002/02/22 12:20:34 markus Exp $"); #include "log.h" #include "xmalloc.h" @@ -88,8 +88,6 @@ static struct { { NULL, SYSLOG_LEVEL_NOT_SET } }; -static void do_log(LogLevel level, const char *fmt, va_list args); - SyslogFacility log_facility_number(char *name) { @@ -111,17 +109,6 @@ log_level_number(char *name) return log_levels[i].val; return SYSLOG_LEVEL_NOT_SET; } -/* Fatal messages. This function never returns. */ - -void -fatal(const char *fmt,...) -{ - va_list args; - va_start(args, fmt); - do_log(SYSLOG_LEVEL_FATAL, fmt, args); - va_end(args); - fatal_cleanup(); -} /* Error messages that should be logged. */ @@ -328,7 +315,7 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr) #define MSGBUFSIZ 1024 -static void +void do_log(LogLevel level, const char *fmt, va_list args) { char msgbuf[MSGBUFSIZ]; |