renamed bad_malloc into badmalloc as well df85dd74
Anselm R.Garbe · 2006-08-21 07:34 1 file(s) · +3 −3
util.c +3 −3
13 13
/* static */
14 14
15 15
static void
16 -
bad_malloc(unsigned int size)
16 +
badmalloc(unsigned int size)
17 17
{
18 18
	eprint("fatal: could not malloc() %u bytes\n", size);
19 19
}
25 25
{
26 26
	void *res = malloc(size);
27 27
	if(!res)
28 -
		bad_malloc(size);
28 +
		badmalloc(size);
29 29
	return res;
30 30
}
31 31
45 45
{
46 46
	void *res = strdup(str);
47 47
	if(!res)
48 -
		bad_malloc(strlen(str));
48 +
		badmalloc(strlen(str));
49 49
	return res;
50 50
}