diff options
-rw-r--r-- | Tests/X11/X11.c | 23 |
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; } |