2012-11-15 12:06:41 +01:00
|
|
|
/* $NetBSD: _warnx.c,v 1.11 2011/07/17 20:54:34 joerg Exp $ */
|
2011-02-14 20:36:03 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* J.T. Conklin, December 12, 1994
|
|
|
|
* Public Domain
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#if defined(LIBC_SCCS) && !defined(lint)
|
2012-11-15 12:06:41 +01:00
|
|
|
__RCSID("$NetBSD: _warnx.c,v 1.11 2011/07/17 20:54:34 joerg Exp $");
|
2011-02-14 20:36:03 +01:00
|
|
|
#endif /* LIBC_SCCS and not lint */
|
|
|
|
|
|
|
|
#if defined(__indr_reference)
|
|
|
|
__indr_reference(_warnx, warnx)
|
|
|
|
#else
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
2012-11-15 12:06:41 +01:00
|
|
|
void _vwarnx(const char *, va_list);
|
2011-02-14 20:36:03 +01:00
|
|
|
|
|
|
|
void
|
|
|
|
warnx(const char *fmt, ...)
|
|
|
|
{
|
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start(ap, fmt);
|
2011-02-15 17:31:16 +01:00
|
|
|
_vwarnx(eval, fmt, ap);
|
2011-02-14 20:36:03 +01:00
|
|
|
va_end(ap);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|