comparison src/debug.c @ 289:cc8ee701f190

pst_block_offset elements are unsigned; consistent usage of pst_malloc and pst_realloc
author Carl Byington <carl@five-ten-sg.com>
date Fri, 27 May 2011 11:36:49 -0700
parents 156cf548c764
children 7a91e30826d8
comparison
equal deleted inserted replaced
288:fa7fc1ac6385 289:cc8ee701f190
162 exit(1); 162 exit(1);
163 } 163 }
164 return mem; 164 return mem;
165 } 165 }
166 166
167
168 void *pst_realloc(void *ptr, size_t size) {
169 void *mem = realloc(ptr, size);
170 if (!mem) {
171 fprintf(stderr, "pst_realloc: Out Of memory [req: %ld]\n", (long)size);
172 exit(1);
173 }
174 return mem;
175 }