From adaa28a6e600f636f5e86244ccef69e98419ba1a Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Sat, 15 Jul 2006 17:00:56 +0200 Subject: proceeded with cleaning up, sorting functions, etc --- util.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index 930b374..f7e3e6f 100644 --- a/util.c +++ b/util.c @@ -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 @@ bad_malloc(unsigned int size) exit(1); } +/* extern functions */ + void * emallocz(unsigned int size) { @@ -38,6 +31,15 @@ emallocz(unsigned int size) return res; } +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) { -- cgit v1.2.3-54-g00ecf