diff options
Diffstat (limited to 'lib/libc/gen/warn.c')
-rw-r--r-- | lib/libc/gen/warn.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/libc/gen/warn.c b/lib/libc/gen/warn.c index 296f2181120..c1fcf9a6835 100644 --- a/lib/libc/gen/warn.c +++ b/lib/libc/gen/warn.c @@ -32,19 +32,13 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: warn.c,v 1.5 2002/06/08 04:52:55 fgsch Exp $"; +static char rcsid[] = "$OpenBSD: warn.c,v 1.6 2002/06/12 03:16:20 fgsch Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/cdefs.h> #include <err.h> #include <stdarg.h> -#ifdef __indr_reference -__indr_reference(_warn, warn); -#else -__weak_alias(warn, _warn); -#endif - void _warn(const char *fmt, ...) { @@ -54,3 +48,6 @@ _warn(const char *fmt, ...) _vwarn(fmt, ap); va_end(ap); } + +__weak_alias(warn, _warn); + |