summaryrefslogtreecommitdiffstats
path: root/include/err.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2001-07-19 14:08:33 +0000
committermillert <millert@openbsd.org>2001-07-19 14:08:33 +0000
commit7789771ce57abbf70ea6851dfdd4f481d04a7b41 (patch)
tree96fad8a5c48701843df08f97186fba2ba9711536 /include/err.h
parent__attribute__((__nonnull__), separate from printf. (diff)
downloadwireguard-openbsd-7789771ce57abbf70ea6851dfdd4f481d04a7b41.tar.xz
wireguard-openbsd-7789771ce57abbf70ea6851dfdd4f481d04a7b41.zip
Expose protos for _{err,warn}{,x} regardless of __indr_reference being
defined since in the notdef __indr_reference case they are still present, just as real functions. Fixes some alpha warnings.
Diffstat (limited to 'include/err.h')
-rw-r--r--include/err.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/err.h b/include/err.h
index e552939cce1..f761c91210d 100644
--- a/include/err.h
+++ b/include/err.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: err.h,v 1.4 2000/12/06 17:18:42 deraadt Exp $ */
+/* $OpenBSD: err.h,v 1.5 2001/07/19 14:08:33 millert Exp $ */
/* $NetBSD: err.h,v 1.11 1994/10/26 00:55:52 cgd Exp $ */
/*-
@@ -68,7 +68,6 @@ void warnx __P((const char *, ...))
void vwarnx __P((const char *, _BSD_VA_LIST_))
__attribute__((__format__ (printf, 1, 0)));
-#ifdef __indr_reference
/*
* The _* versios are for use in library functions so user-defined
* versions of err*,warn* do not get used.
@@ -89,7 +88,6 @@ void _warnx __P((const char *, ...))
__attribute__((__format__ (printf, 1, 2)));
void _vwarnx __P((const char *, _BSD_VA_LIST_))
__attribute__((__format__ (printf, 1, 0)));
-#endif
__END_DECLS