Remove single occurance of die, and then remove die itself.

This commit is contained in:
Aldo Cortesi 2007-12-19 13:25:57 +11:00 committed by Julien Danjou
parent 9bb28772ed
commit 4664fba970
2 changed files with 1 additions and 12 deletions

11
util.c
View File

@ -28,17 +28,6 @@
#include "util.h" #include "util.h"
void
die(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
abort();
}
void void
eprint(const char *fmt, ...) eprint(const char *fmt, ...)
{ {

View File

@ -129,7 +129,7 @@ initxcolor(int screen, const char *colstr)
&screenColor, &screenColor,
&exactColor); &exactColor);
if(!ret) if(!ret)
die("awesome: error, cannot allocate color '%s'\n", colstr); eprint("awesome: error, cannot allocate color '%s'\n", colstr);
return screenColor; return screenColor;
} }