comparison arogue7/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 f9ef86cf22b2
children
comparison
equal deleted inserted replaced
299:74351bf23e5e 300:0250220d8cdd
216 { 216 {
217 register char *space = ALLOC(size); 217 register char *space = ALLOC(size);
218 static char errbuf[LINELEN]; 218 static char errbuf[LINELEN];
219 219
220 if (space == NULL) { 220 if (space == NULL) {
221 sprintf(errbuf,"Rogue ran out of memory (used = %d, wanted = %d).", 221 sprintf(errbuf,"Rogue ran out of memory (used = %ld, wanted = %d).",
222 md_memused(), size); 222 md_memused(), size);
223 fatal(errbuf); 223 fatal(errbuf);
224 } 224 }
225 total++; 225 total++;
226 return space; 226 return space;