comparison arogue5/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 56e748983fa8
children
comparison
equal deleted inserted replaced
299:74351bf23e5e 300:0250220d8cdd
172 { 172 {
173 register char *space = ALLOC(size); 173 register char *space = ALLOC(size);
174 static char errbuf[LINELEN]; 174 static char errbuf[LINELEN];
175 175
176 if (space == NULL) { 176 if (space == NULL) {
177 sprintf(errbuf,"Rogue ran out of memory (used = %d, wanted = %d).", 177 sprintf(errbuf,"Rogue ran out of memory (used = %ld, wanted = %d).",
178 md_memused(), size); 178 md_memused(), size);
179 fatal(errbuf); 179 fatal(errbuf);
180 } 180 }
181 total++; 181 total++;
182 return space; 182 return space;