diff -r f08271b7cb20 -r 4bd49f404f10 util.c --- a/util.c Sat Jul 15 16:30:50 2006 +0200 +++ b/util.c Sat Jul 15 17:00:56 2006 +0200 @@ -2,24 +2,15 @@ * (C)opyright MMVI Anselm R. Garbe * See LICENSE file for license details. */ +#include "dwm.h" #include #include #include -#include #include #include -#include "dwm.h" - -void -eprint(const char *errstr, ...) { - va_list ap; - va_start(ap, errstr); - vfprintf(stderr, errstr, ap); - va_end(ap); - exit(1); -} +/* static functions */ static void bad_malloc(unsigned int size) @@ -29,6 +20,8 @@ exit(1); } +/* extern functions */ + void * emallocz(unsigned int size) { @@ -39,6 +32,15 @@ } void +eprint(const char *errstr, ...) { + va_list ap; + va_start(ap, errstr); + vfprintf(stderr, errstr, ap); + va_end(ap); + exit(1); +} + +void spawn(Arg *arg) { char **argv = (char **)arg->argv;