openssh/regress/misc/sk-dummy/fatal.c
Damien Miller ef3853bb94 another attempt at sk-dummy.so working x-platform
include a fatal() implementation to satisfy libopenbsd-compat

clean up .lo and .so files

.gitignore .lo and .so files
2019-11-29 11:52:23 +11:00

21 lines
269 B
C

/* public domain */
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
void fatal(char *fmt, ...);
void
fatal(char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
fputc('\n', stderr);
_exit(1);
}