parent
750ca8f64d
commit
0112e3c675
2
eesh/E.h
2
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
|
||||
|
|
12
eesh/main.c
12
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)
|
||||
|
|
Loading…
Reference in New Issue