9
0
Fork 0

svn_rev_603

This commit is contained in:
Sascha Hauer 2007-07-05 18:02:09 +02:00 committed by Sascha Hauer
parent a71ce0c189
commit 716336f1d4
1 changed files with 3 additions and 5 deletions

View File

@ -21,14 +21,12 @@ void *sbrk_no_zero(ptrdiff_t increment)
ulong old = mem_malloc_brk;
ulong new = old + increment;
if ((new < mem_malloc_start) || (new > mem_malloc_end)) {
return (NULL);
}
if ((new < mem_malloc_start) || (new > mem_malloc_end))
return NULL;
memset ((void *)old, 0, increment);
mem_malloc_brk = new;
return ((void *) old);
return (void *)old;
}
void *sbrk (ptrdiff_t increment)