[git commit future 1/1] err.c: add attribute_noreturn to static functions

Peter S. Mazinger ps.m at gmx.net
Wed Mar 16 19:20:32 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=0a96976c9b458a2e1db77797c75f8af1cd4d2e07
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

while there, remove unneeded pthread.h

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 libc/misc/error/err.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/libc/misc/error/err.c b/libc/misc/error/err.c
index 76f66f3..4f1e6a3 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);
-- 
1.7.3.4



More information about the uClibc-cvs mailing list