srogue: add and use more md_* portable functions.
Privileges and memory usage checks are now more portable.
This commit is contained in:
parent
791df4324f
commit
b9cc9cf3a7
6 changed files with 74 additions and 22 deletions
|
|
@ -102,7 +102,7 @@ int size;
|
|||
register char *space = ALLOC(size);
|
||||
|
||||
if (space == NULL) {
|
||||
sprintf(prbuf,"Rogue ran out of memory (%d).",sbrk(0));
|
||||
sprintf(prbuf,"Rogue ran out of memory (%d).", md_memused());
|
||||
fatal(prbuf);
|
||||
}
|
||||
total++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue