diff options
author | 2020-10-17 01:28:20 +0000 | |
---|---|---|
committer | 2020-10-17 01:28:20 +0000 | |
commit | 5461b00b1759778b51fc83829523de99a5b8b3fb (patch) | |
tree | 21c651758bde59d1dec94ae9bb28584577776e06 /usr.bin/ssh/fatal.c | |
parent | Use the retguard macros from asm.h to protect the function. (diff) | |
download | wireguard-openbsd-5461b00b1759778b51fc83829523de99a5b8b3fb.tar.xz wireguard-openbsd-5461b00b1759778b51fc83829523de99a5b8b3fb.zip |
make the log functions that exit (sshlogdie(), sshfatal(), etc) have
identical signatures. Makes things a bit more consistent...
Diffstat (limited to 'usr.bin/ssh/fatal.c')
-rw-r--r-- | usr.bin/ssh/fatal.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ssh/fatal.c b/usr.bin/ssh/fatal.c index d0478847066..fe290b44150 100644 --- a/usr.bin/ssh/fatal.c +++ b/usr.bin/ssh/fatal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fatal.c,v 1.8 2020/10/16 13:24:45 djm Exp $ */ +/* $OpenBSD: fatal.c,v 1.9 2020/10/17 01:28:20 djm Exp $ */ /* * Copyright (c) 2002 Markus Friedl. All rights reserved. * @@ -32,12 +32,13 @@ /* Fatal messages. This function never returns. */ void -sshfatal(const char *file, const char *func, int line, const char *fmt, ...) +sshfatal(const char *file, const char *func, int line, int showfunc, + LogLevel level, const char *fmt, ...) { va_list args; va_start(args, fmt); - ssh_log(file, func, line, SYSLOG_LEVEL_FATAL, fmt, args); + ssh_log(file, func, line, showfunc, level, fmt, args); va_end(args); cleanup_exit(255); } |