sync regress/misc/sk-dummy/fatal.c

This commit is contained in:
Damien Miller 2020-10-17 22:47:52 +11:00
parent 3554b4afa3
commit 999d7cb79a
1 changed files with 6 additions and 3 deletions

View File

@ -7,14 +7,17 @@
#include <stdarg.h>
#include <unistd.h>
void
sshfatal(const char *file, const char *func, int line, const char *fmt, ...);
void sshfatal(const char *file, const char *func, int line, int showfunc,
LogLevel level, const char *fmt, ...);
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 ap;
if (showfunc)
fprintf(stderr, "%s: ", func);
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);