summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-18 21:36:04 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:27 +0200
commit145a5962d8b6f39f8cbe4d616a5e543307aa2aac (patch)
tree89a22f3f57a0eb7212bf1d7389de170c482f0cdd /libc
parent23f8c147daab81fa277953696102357bbdd6d941 (diff)
err.c: add attribute_noreturn to static functions
while there, remove unneeded pthread.h Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/error/err.c7
1 files changed, 2 insertions, 5 deletions
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 <stdarg.h>
#include <errno.h>
#include <err.h>
-#ifdef __UCLIBC_HAS_THREADS__
-#include <pthread.h>
-#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);