coverity appeasement
[minix.git] / lib / libc / gen / _errx.c
blob79b5b8034e7794edb7f5a451bc779b169599e3cb
1 /* $NetBSD: _errx.c,v 1.11 2005/09/13 01:44:09 christos Exp $ */
3 /*
4 * J.T. Conklin, December 12, 1994
5 * Public Domain
6 */
8 #include <sys/cdefs.h>
9 #if defined(LIBC_SCCS) && !defined(lint)
10 __RCSID("$NetBSD: _errx.c,v 1.11 2005/09/13 01:44:09 christos Exp $");
11 #endif /* LIBC_SCCS and not lint */
13 #if defined(__indr_reference)
14 __indr_reference(_errx, errx)
15 #else
17 #include <stdarg.h>
19 __dead void _verrx(int eval, const char *, _BSD_VA_LIST_);
21 __dead void
22 errx(int eval, const char *fmt, ...)
24 va_list ap;
26 va_start(ap, fmt);
27 _verrx(eval, fmt, ap);
28 va_end(ap);
30 #endif