Mercurial > hg > early-roguelike
comparison srogue/list.c @ 300:0250220d8cdd
Fix an assortment of compiler warnings.
A few potential bugs were removed in the process. Much code cleanup
remains to be done.
author | John "Elwin" Edwards |
---|---|
date | Fri, 22 Nov 2019 21:18:27 -0500 |
parents | 94a0d9dd5ce1 |
children |
comparison
equal
deleted
inserted
replaced
299:74351bf23e5e | 300:0250220d8cdd |
---|---|
98 new(int size) | 98 new(int size) |
99 { | 99 { |
100 register char *space = ALLOC(size); | 100 register char *space = ALLOC(size); |
101 | 101 |
102 if (space == NULL) { | 102 if (space == NULL) { |
103 sprintf(prbuf,"Rogue ran out of memory (%d).", md_memused()); | 103 sprintf(prbuf,"Rogue ran out of memory (%ld).", md_memused()); |
104 fatal(prbuf); | 104 fatal(prbuf); |
105 } | 105 } |
106 total++; | 106 total++; |
107 return space; | 107 return space; |
108 } | 108 } |