summaryrefslogtreecommitdiffstats
path: root/mini-wm.c
diff options
context:
space:
mode:
Diffstat (limited to 'mini-wm.c')
-rw-r--r--mini-wm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mini-wm.c b/mini-wm.c
index e2bbe9d4b..c388d4d1a 100644
--- a/mini-wm.c
+++ b/mini-wm.c
@@ -16,6 +16,7 @@
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#include <gdk/gdkx.h>
@@ -100,14 +101,13 @@ mini_wm_start (void)
int main( int argc,
char *argv[] )
{
-
gtk_init (&argc, &argv);
mini_wm_start ();
/* Indicate back to anaconda that we now have established
* connection to the display. */
- write(1, "#", 1);
+ if (write(1, "#", 1) == -1) abort();
gtk_main();