removed the "void" stuff. Some compilers just don't digest it.
This commit is contained in:
parent
991c568ee4
commit
dbac04eb47
|
@ -21,7 +21,7 @@ wr_num(fd, n)
|
||||||
wr_num(fd, n/10);
|
wr_num(fd, n/10);
|
||||||
}
|
}
|
||||||
s[0] = (n % 10) + '0';
|
s[0] = (n % 10) + '0';
|
||||||
(void) sys_write(fd, s, 1);
|
sys_write(fd, s, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
_BadAssertion(file, lineno, assertion)
|
_BadAssertion(file, lineno, assertion)
|
||||||
|
@ -29,11 +29,11 @@ _BadAssertion(file, lineno, assertion)
|
||||||
int lineno;
|
int lineno;
|
||||||
{
|
{
|
||||||
|
|
||||||
(void) sys_write(STDERR, file, strlen(file));
|
sys_write(STDERR, file, strlen(file));
|
||||||
(void) sys_write(STDERR, ", line ", 7);
|
sys_write(STDERR, ", line ", 7);
|
||||||
wr_num(STDERR, lineno);
|
wr_num(STDERR, lineno);
|
||||||
(void) sys_write(STDERR, ": assertion \"", 13);
|
sys_write(STDERR, ": assertion \"", 13);
|
||||||
(void) sys_write(STDERR, assertion, strlen(assertion));
|
sys_write(STDERR, assertion, strlen(assertion));
|
||||||
(void) sys_write(STDERR, "\" failed\n", 9);
|
sys_write(STDERR, "\" failed\n", 9);
|
||||||
sys_stop(S_ABORT);
|
sys_stop(S_ABORT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue