public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71df09d
)
Update module assert
author
Manoel Trapier
<godzil@godzil.net>
Thu, 7 Mar 2013 18:17:18 +0000
(19:17 +0100)
committer
Manoël Trapier
<godzil@MacBook-Pro.home>
Wed, 24 Jun 2015 22:41:44 +0000
(23:41 +0100)
modules/src/assert/BadAssert.c
patch
|
blob
|
history
diff --git
a/modules/src/assert/BadAssert.c
b/modules/src/assert/BadAssert.c
index
3584221
..
f830970
100644
(file)
--- a/
modules/src/assert/BadAssert.c
+++ b/
modules/src/assert/BadAssert.c
@@
-7,13
+7,11
@@
indicated by the parameters, and then give a core dump
*/
+#include <stdio.h>
#include <string.h>
#include <system.h>
-static
-wr_num(fd, n)
- File *fd;
- int n;
+static void wr_num(File *fd, int n)
{
char s[2];
@@
-25,10
+23,7
@@
wr_num(fd, n)
sys_write(fd, s, 1);
}
-int
-_BadAssertion(file, lineno, assertion)
- char *file, *assertion;
- int lineno;
+int _BadAssertion(char *file, int lineno, char *assertion)
{
sys_write(STDERR, file, strlen(file));