/* static */
static void
-bad_malloc(unsigned int size)
+badmalloc(unsigned int size)
{
eprint("fatal: could not malloc() %u bytes\n", size);
}
{
void *res = malloc(size);
if(!res)
- bad_malloc(size);
+ badmalloc(size);
return res;
}
{
void *res = strdup(str);
if(!res)
- bad_malloc(strlen(str));
+ badmalloc(strlen(str));
return res;
}