xdemo.c
changeset 8 96d16dfe787a
parent 4 236f8f747073
child 9 c3fecc82ade6
--- a/xdemo.c
+++ b/xdemo.c
@@ -40,9 +40,9 @@
         XNextEvent (dpy, &xev);
         switch (xev.type) {
         case KeyPress:
-			if(xev.xkey.keycode == 9)
-	            active = 0;
-			printf("Keycode = %2u\n", xev.xkey.keycode);
+            if (xev.xkey.keycode == 9)
+                active = 0;
+            printf ("Keycode = %2u\n", xev.xkey.keycode);
             break;
         default:
             printf ("Unknown Event: %d\n", xev.type);
@@ -51,5 +51,6 @@
 
     XDestroyWindow (dpy, w);
     XCloseDisplay (dpy);
-    return 0;
+
+    return EXIT_SUCCESS;
 }