From 14ab03ff69ec4386a9fcde5e0ab829d01d69f950 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 5 Nov 2002 07:06:00 -0500 Subject: Simplify --- Tests/X11/X11.c | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'Tests') diff --git a/Tests/X11/X11.c b/Tests/X11/X11.c index 8ec6adc0d5..7804352ade 100644 --- a/Tests/X11/X11.c +++ b/Tests/X11/X11.c @@ -2,27 +2,11 @@ #include #include +#include -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; } -- cgit v1.2.1