eesh - Eliminate Alert function.

SVN revision: 42468
This commit is contained in:
Kim Woelders 2009-09-13 13:45:52 +00:00
parent 750ca8f64d
commit 0112e3c675
2 changed files with 1 additions and 13 deletions

View File

@ -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

View File

@ -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)