From 145a5962d8b6f39f8cbe4d616a5e543307aa2aac Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 18 Mar 2011 21:36:04 +0100 Subject: err.c: add attribute_noreturn to static functions while there, remove unneeded pthread.h Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/misc/error/err.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'libc/misc/error') diff --git a/libc/misc/error/err.c b/libc/misc/error/err.c index 76f66f39e..4f1e6a33f 100644 --- a/libc/misc/error/err.c +++ b/libc/misc/error/err.c @@ -11,9 +11,6 @@ #include #include #include -#ifdef __UCLIBC_HAS_THREADS__ -#include -#endif #ifdef __UCLIBC_MJN3_ONLY__ #warning REMINDER: Deal with wide oriented stderr case. @@ -80,7 +77,7 @@ void warnx(const char *format, ...) va_end(args); } -static void __verr(int status, const char *format, va_list args) +static void attribute_noreturn __verr(int status, const char *format, va_list args) { __vwarn(format, args); exit(status); @@ -99,7 +96,7 @@ void err(int status, const char *format, ...) va_end(args); } -static void __verrx(int status, const char *format, va_list args) +static void attribute_noreturn __verrx(int status, const char *format, va_list args) { __vwarnx(format, args); exit(status); -- cgit v1.2.3