summaryrefslogtreecommitdiffstats
path: root/include/err.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-09-14 03:00:32 +0000
committerbde <bde@FreeBSD.org>1996-09-14 03:00:32 +0000
commit6ed5ccfb8ff780ada625c4ebc1c40ad5d6395e84 (patch)
tree137a895b2bbf552ac725382b58bbcd9900e55b7a /include/err.h
parent7a2a97d77da0ec8209bd2d8424f56c95a4f837ea (diff)
downloadFreeBSD-src-6ed5ccfb8ff780ada625c4ebc1c40ad5d6395e84.zip
FreeBSD-src-6ed5ccfb8ff780ada625c4ebc1c40ad5d6395e84.tar.gz
Don't use __dead or __pure in user code. They were obfuscations
for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2 or __pure2 where it wasn't already done, except in math.h where use of __pure was mostly wrong.
Diffstat (limited to 'include/err.h')
-rw-r--r--include/err.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/err.h b/include/err.h
index 2f065e7..fd02a61 100644
--- a/include/err.h
+++ b/include/err.h
@@ -47,16 +47,16 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
-__dead void err __P((int, const char *, ...)) __dead2;
-__dead void verr __P((int, const char *, _BSD_VA_LIST_)) __dead2;
-__dead void errx __P((int, const char *, ...)) __dead2;
-__dead void verrx __P((int, const char *, _BSD_VA_LIST_)) __dead2;
-void warn __P((const char *, ...));
-void vwarn __P((const char *, _BSD_VA_LIST_));
-void warnx __P((const char *, ...));
-void vwarnx __P((const char *, _BSD_VA_LIST_));
-void err_set_file __P((void *));
-void err_set_exit __P((void (*)__P((int))));
+void err __P((int, const char *, ...)) __dead2;
+void verr __P((int, const char *, _BSD_VA_LIST_)) __dead2;
+void errx __P((int, const char *, ...)) __dead2;
+void verrx __P((int, const char *, _BSD_VA_LIST_)) __dead2;
+void warn __P((const char *, ...));
+void vwarn __P((const char *, _BSD_VA_LIST_));
+void warnx __P((const char *, ...));
+void vwarnx __P((const char *, _BSD_VA_LIST_));
+void err_set_file __P((void *));
+void err_set_exit __P((void (*)(int)));
__END_DECLS
#endif /* !_ERR_H_ */
OpenPOWER on IntegriCloud