Part 1 of warning/old k&r inconsistency correction.

This commit is contained in:
Manoel Trapier
2013-03-05 16:24:29 +01:00
committed by Manoël Trapier
parent 7eff32c40d
commit 9f7ae734db
8 changed files with 420 additions and 402 deletions

View File

@@ -7,13 +7,11 @@
#include "system.h"
#include <unistd.h>
char *
sys_break(incr)
int incr;
char *sys_break(int incr)
{
register char *brk = sbrk(incr);
char *brk = (char*)sbrk(incr);
if (brk == (char *) 0 || brk == (char *)-1)
if ((brk == (char *) 0) || (brk == (char *)-1))
return ILL_BREAK;
return brk;
}