Mercurial > hg > early-roguelike
diff srogue/list.c @ 120:d6b7c3fb37ea
srogue: add and use more md_* portable functions.
Privileges and memory usage checks are now more portable.
author | John "Elwin" Edwards |
---|---|
date | Fri, 02 May 2014 15:06:23 -0700 |
parents | 2128c7dc8a40 |
children | 94a0d9dd5ce1 |
line wrap: on
line diff
--- a/srogue/list.c Wed Apr 30 14:46:30 2014 -0700 +++ b/srogue/list.c Fri May 02 15:06:23 2014 -0700 @@ -102,7 +102,7 @@ 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++;