xdemo.c
changeset 48 b94d657a9acb
parent 27 81a574d60c15
child 77 49e0babccb23
--- a/xdemo.c
+++ b/xdemo.c
@@ -19,14 +19,14 @@
 
     if (dpy == NULL) {
         printf ("Error opening localhost:0\n");
-        return EXIT_SUCCESS;
+        return EXIT_FAILURE;
     }
 
     XSynchronize (dpy, 1);
     w = XCreateSimpleWindow (dpy, DefaultRootWindow (dpy), 0, 0, 240, 60, 1, 1, 1);
 
     if (w < 0)
-        return EXIT_SUCCESS;
+        return EXIT_FAILURE;
 
     printf ("WINDOW-ID: %ld\n", w);