diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-05-08 05:31:43 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-05-08 05:31:43 -0400 |
commit | 1638a5e8a90f0f0a6d46cdf3ff9f2393c45c248a (patch) | |
tree | 880e1fed8f48ccfd5fdb383e0990355e0b755fd0 /src/window-xlib.c | |
parent | 26e1ede47e62fe80c8b899847e5205cd60f130a9 (diff) | |
download | runes-1638a5e8a90f0f0a6d46cdf3ff9f2393c45c248a.tar.gz runes-1638a5e8a90f0f0a6d46cdf3ff9f2393c45c248a.zip |
abstract out error logging a bit
just spitting things to stderr isn't always going to be good enough, so
let's at least provide one place to change that when necessary
Diffstat (limited to 'src/window-xlib.c')
-rw-r--r-- | src/window-xlib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/window-xlib.c b/src/window-xlib.c index 2c36e44..cc9ec7e 100644 --- a/src/window-xlib.c +++ b/src/window-xlib.c @@ -1,5 +1,4 @@ #include <cairo-xlib.h> -#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <X11/cursorfont.h> @@ -167,7 +166,7 @@ void runes_window_backend_create_window(RunesTerm *t, int argc, char *argv[]) NULL ); if (w->ic == NULL) { - fprintf(stderr, "failed\n"); + runes_warn("failed\n"); exit(1); } |