Update module assert

This commit is contained in:
Manoel Trapier 2013-03-07 19:17:18 +01:00 committed by Manoël Trapier
parent 71df09d022
commit e54911f642

View File

@ -7,13 +7,11 @@
indicated by the parameters, and then give a core dump indicated by the parameters, and then give a core dump
*/ */
#include <stdio.h>
#include <string.h> #include <string.h>
#include <system.h> #include <system.h>
static static void wr_num(File *fd, int n)
wr_num(fd, n)
File *fd;
int n;
{ {
char s[2]; char s[2];
@ -25,10 +23,7 @@ wr_num(fd, n)
sys_write(fd, s, 1); sys_write(fd, s, 1);
} }
int int _BadAssertion(char *file, int lineno, char *assertion)
_BadAssertion(file, lineno, assertion)
char *file, *assertion;
int lineno;
{ {
sys_write(STDERR, file, strlen(file)); sys_write(STDERR, file, strlen(file));