From 4664fba9708e35fcbf2a3bba1980b94bfb19631c Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 19 Dec 2007 13:25:57 +1100 Subject: [PATCH] Remove single occurance of die, and then remove die itself. --- util.c | 11 ----------- xutil.c | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/util.c b/util.c index d80617a3..f43181f8 100644 --- a/util.c +++ b/util.c @@ -28,17 +28,6 @@ #include "util.h" -void -die(const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); - abort(); -} - void eprint(const char *fmt, ...) { diff --git a/xutil.c b/xutil.c index 358a44a7..b92faaa3 100644 --- a/xutil.c +++ b/xutil.c @@ -129,7 +129,7 @@ initxcolor(int screen, const char *colstr) &screenColor, &exactColor); if(!ret) - die("awesome: error, cannot allocate color '%s'\n", colstr); + eprint("awesome: error, cannot allocate color '%s'\n", colstr); return screenColor; }