2012-11-15 12:06:41 +01:00
|
|
|
/* $NetBSD: _warn.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: _warn.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(_warn, warn)
|
|
|
|
#else
|
2011-02-15 17:31:16 +01:00
|
|
|
|
2011-02-14 20:36:03 +01:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2012-11-15 12:06:41 +01:00
|
|
|
void _vwarn(const char *, va_list);
|
2011-02-14 20:36:03 +01:00
|
|
|
|
|
|
|
void
|
|
|
|
warn(const char *fmt, ...)
|
|
|
|
{
|
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start(ap, fmt);
|
2011-02-15 17:31:16 +01:00
|
|
|
_vwarn(eval, fmt, ap);
|
2011-02-14 20:36:03 +01:00
|
|
|
va_end(ap);
|
|
|
|
}
|
|
|
|
#endif
|