removed erealloc (not used) 9715ba82
Anselm R. Garbe · 2007-01-16 11:35 2 file(s) · +0 −10
dwm.h +0 −1
143 143
/* util.c */
144 144
extern void *emallocz(unsigned int size);	/* allocates zero-initialized memory, exits on error */
145 145
extern void eprint(const char *errstr, ...);	/* prints errstr and exits with 1 */
146 -
extern void *erealloc(void *ptr, unsigned int size);	/* reallocates memory, exits on error */
147 146
extern void spawn(Arg *arg);			/* forks a new subprocess with to arg's cmd */
148 147
149 148
/* view.c */
util.c +0 −9
29 29
	exit(EXIT_FAILURE);
30 30
}
31 31
32 -
void *
33 -
erealloc(void *ptr, unsigned int size) {
34 -
	void *res = realloc(ptr, size);
35 -
36 -
	if(!res)
37 -
		eprint("fatal: could not malloc() %u bytes\n", size);
38 -
	return res;
39 -
}
40 -
41 32
void
42 33
spawn(Arg *arg) {
43 34
	static char *shell = NULL;