summaryrefslogtreecommitdiffstats
path: root/libc/misc/assert/__assert.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2009-10-17 02:04:20 +0200
committerAustin Foxley <austinf@cetoncorp.com>2009-11-22 11:22:39 -0800
commit4fb2e2c314c475a59024acbc94a5f8dd3086390a (patch)
tree882fc08a59565bf275628d0302c33cb8a4f3a531 /libc/misc/assert/__assert.c
parent8100ff3f10d9a011d19941a620fb0b2d6f2f9526 (diff)
downloaduClibc-alpine-4fb2e2c314c475a59024acbc94a5f8dd3086390a.tar.bz2
uClibc-alpine-4fb2e2c314c475a59024acbc94a5f8dd3086390a.tar.xz
assert: make linenumber unsigned
Move attribute_noreturn to header. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/misc/assert/__assert.c')
-rw-r--r--libc/misc/assert/__assert.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libc/misc/assert/__assert.c b/libc/misc/assert/__assert.c
index ff9e47dcf..18c6f5ecf 100644
--- a/libc/misc/assert/__assert.c
+++ b/libc/misc/assert/__assert.c
@@ -29,8 +29,6 @@
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
-#include <bits/uClibc_uintmaxtostr.h>
/* Get the prototype from assert.h as a double-check. */
@@ -43,8 +41,8 @@
static smallint in_assert; /* bss inits to 0. */
-void attribute_noreturn __assert(const char *assertion, const char * filename,
- int linenumber, register const char * function)
+void __assert(const char *assertion, const char * filename,
+ unsigned int linenumber, register const char * function)
{
if (!in_assert) {
in_assert = 1;
@@ -62,6 +60,7 @@ void attribute_noreturn __assert(const char *assertion, const char * filename,
assertion
);
}
+ /* shouldn't we? fflush(stderr); */
abort();
}