comparison xrogue/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 f54901b9c39b
children
comparison
equal deleted inserted replaced
299:74351bf23e5e 300:0250220d8cdd
236 new(int size) 236 new(int size)
237 { 237 {
238 register char *space = ALLOC(size); 238 register char *space = ALLOC(size);
239 239
240 if (space == NULL) { 240 if (space == NULL) {
241 sprintf(prbuf,"Rogue ran out of memory (used = %d, wanted = %d).", 241 sprintf(prbuf,"Rogue ran out of memory (used = %ld, wanted = %d).",
242 md_memused(), size); 242 md_memused(), size);
243 fatal(prbuf); 243 fatal(prbuf);
244 } 244 }
245 total++; 245 total++;
246 return space; 246 return space;