diff options
Diffstat (limited to 'libc/misc/assert')
-rw-r--r-- | libc/misc/assert/__assert.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libc/misc/assert/__assert.c b/libc/misc/assert/__assert.c index ff9e47dcf..8afde52ff 100644 --- a/libc/misc/assert/__assert.c +++ b/libc/misc/assert/__assert.c @@ -30,8 +30,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. */ #undef NDEBUG @@ -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,7 +60,7 @@ void attribute_noreturn __assert(const char *assertion, const char * filename, assertion ); } + /* shouldn't we? fflush(stderr); */ abort(); } - libc_hidden_def(__assert) |