comparison src/X_main.c @ 10:7cfecdce94cc

Remove warning messages
author Thinker K.F. Li <thinker@branda.to>
date Sat, 26 Jul 2008 05:32:31 +0800
parents 6eecdd331fe7
children 128af06c876c
comparison
equal deleted inserted replaced
9:6eecdd331fe7 10:7cfecdce94cc
1 #include <stdio.h> 1 #include <stdio.h>
2 #include <unistd.h> 2 #include <unistd.h>
3 #include <X11/Xlib.h> 3 #include <X11/Xlib.h>
4 #include <X11/Xutil.h> 4 #include <X11/Xutil.h>
5 #include <cairo.h> 5 #include <cairo.h>
6 #include <cairo-xlib.h>
6 7
7 #include <string.h> 8 #include <string.h>
8 #include "shapes.h" 9 #include "shapes.h"
9 10
10 void draw_path(cairo_t *cr, int w, int h) { 11 void draw_path(cairo_t *cr, int w, int h) {
79 80
80 XFlush(display); 81 XFlush(display);
81 sleep(10); 82 sleep(10);
82 83
83 XCloseDisplay(display); 84 XCloseDisplay(display);
85 return 0;
84 } 86 }