summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-05 12:06:00 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-05 12:06:00 (GMT)
commit14ab03ff69ec4386a9fcde5e0ab829d01d69f950 (patch)
tree1993f59f2cd8f7165a8a9fb1f909b0c7b03fab35 /Tests
parentf33fda672000307e7355a9f852b9c8b72025e33f (diff)
downloadCMake-14ab03ff69ec4386a9fcde5e0ab829d01d69f950.zip
CMake-14ab03ff69ec4386a9fcde5e0ab829d01d69f950.tar.gz
CMake-14ab03ff69ec4386a9fcde5e0ab829d01d69f950.tar.bz2
Simplify
Diffstat (limited to 'Tests')
-rw-r--r--Tests/X11/X11.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/Tests/X11/X11.c b/Tests/X11/X11.c
index 8ec6adc..7804352 100644
--- a/Tests/X11/X11.c
+++ b/Tests/X11/X11.c
@@ -2,27 +2,11 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
+#include <stdlib.h>
-char hello[]="hello.world";
-char hi[]="Hi";
-
-main(argc, argv)
-int argc;
-char **argv;
+int main()
{
Display *mydisplay;
- Window mywindow;
- GC mygc;
-
- XEvent myevent;
- KeySym mykey;
-
- XSizeHints myhint;
- int myscreen;
- unsigned long myforeground, mybackground;
- int i;
- char text[10];
- int done;
char* display = ":0";
@@ -34,10 +18,9 @@ char **argv;
mydisplay=XOpenDisplay(display);
if ( mydisplay )
{
- printf("Opened...\n");
XCloseDisplay(mydisplay);
}
- exit(0);
+ return 0;
}