From 0112e3c675f1bf87ee848096b14f07de88ace8e0 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Sun, 13 Sep 2009 13:45:52 +0000 Subject: [PATCH] eesh - Eliminate Alert function. SVN revision: 42468 --- eesh/E.h | 2 -- eesh/main.c | 12 +----------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/eesh/E.h b/eesh/E.h index db96366a..64682d9a 100644 --- a/eesh/E.h +++ b/eesh/E.h @@ -50,8 +50,6 @@ char *CommsGet(Client * c, XEvent * ev); Client *ClientCreate(Window win); void ClientDestroy(Client * c); -void Alert(const char *fmt, ...); - #define Ecalloc calloc #define Emalloc malloc #define Erealloc realloc diff --git a/eesh/main.c b/eesh/main.c index 9ff2028a..590a24c3 100644 --- a/eesh/main.c +++ b/eesh/main.c @@ -144,7 +144,7 @@ main(int argc, char **argv) disp = XOpenDisplay(display_name); if (!disp) { - Alert("Failed to connect to X server\n"); + fprintf(stderr, "Failed to connect to X server\n"); exit(1); } @@ -244,16 +244,6 @@ main(int argc, char **argv) return 0; } -void -Alert(const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); -} - #if !USE_LIBC_STRDUP char * Estrdup(const char *s)