libc, libutil: remove compat hacks
[minix.git] / lib / libc / gen / _warnx.c
blobef09ffe549a882a2ac98d55231f2aefc41bea9ce
1 /* $NetBSD: _warnx.c,v 1.10 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: _warnx.c,v 1.10 2005/09/13 01:44:09 christos Exp $");
11 #endif /* LIBC_SCCS and not lint */
13 #if defined(__indr_reference)
14 __indr_reference(_warnx, warnx)
15 #else
17 #include <stdarg.h>
19 void _vwarnx(const char *, _BSD_VA_LIST_);
21 void
22 warnx(const char *fmt, ...)
24 va_list ap;
26 va_start(ap, fmt);
27 #ifdef __minix
28 _vwarnx(fmt, ap);
29 #else
30 _vwarnx(eval, fmt, ap);
31 #endif
32 va_end(ap);
35 #endif