small renamings of two static functions 08d85d6d
Anselm R.Garbe · 2006-08-21 07:33 2 file(s) · +5 −5
main.c +2 −2
63 63
}
64 64
65 65
static int
66 -
win_property(Window w, Atom a, Atom t, long l, unsigned char **prop)
66 +
winprop(Window w, Atom a, Atom t, long l, unsigned char **prop)
67 67
{
68 68
	int status, format;
69 69
	unsigned long res, extra;
116 116
	long res;
117 117
	Atom *protocols;
118 118
119 -
	res = win_property(w, wmatom[WMProtocols], XA_ATOM, 20L,
119 +
	res = winprop(w, wmatom[WMProtocols], XA_ATOM, 20L,
120 120
			((unsigned char **)&protocols));
121 121
	if(res <= 0) {
122 122
		return protos;
util.c +3 −3
12 12
/* static */
13 13
14 14
static void
15 -
bad_malloc(unsigned int size)
15 +
badmalloc(unsigned int size)
16 16
{
17 17
	eprint("fatal: could not malloc() %u bytes\n", size);
18 18
}
25 25
	void *res = calloc(1, size);
26 26
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 = realloc(ptr, size);
47 47
	if(!res)
48 -
		bad_malloc(size);
48 +
		badmalloc(size);
49 49
	return res;
50 50
}
51 51