Mercurial > hg > early-roguelike
comparison rogue3/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 | 527e2150eaf0 |
| children |
comparison
equal
deleted
inserted
replaced
| 299:74351bf23e5e | 300:0250220d8cdd |
|---|---|
| 119 { | 119 { |
| 120 char *space = ALLOC(size); | 120 char *space = ALLOC(size); |
| 121 | 121 |
| 122 if (space == NULL) | 122 if (space == NULL) |
| 123 { | 123 { |
| 124 sprintf(prbuf, "Rogue ran out of memory (%d). Fatal error!", md_memused()); | 124 sprintf(prbuf, "Rogue ran out of memory (%ld). Fatal error!", md_memused()); |
| 125 fatal(prbuf); | 125 fatal(prbuf); |
| 126 } | 126 } |
| 127 total++; | 127 total++; |
| 128 return space; | 128 return space; |
| 129 } | 129 } |
