srogue: add and use more md_* portable functions.

Privileges and memory usage checks are now more portable.
This commit is contained in:
John "Elwin" Edwards 2014-05-02 15:06:23 -07:00
parent 791df4324f
commit b9cc9cf3a7
6 changed files with 74 additions and 22 deletions

View file

@ -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++;