[cairo-commit] cairo/test cairo-test.c,1.54,1.55

Owen Taylor commit at pdx.freedesktop.org
Tue Aug 23 05:18:50 PDT 2005


Committed by: otaylor

Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv7243/test

Modified Files:
	cairo-test.c 
Log Message:
2005-08-23  Owen Taylor  <otaylor at redhat.com>

        Some fixes for warnings from sparse (Part of #4208,
        Kjartan Maraas)

        * test/cairo-test.c (create_xlib_surface): Use NULL, not 0.

        * src/cairo-matrix.c (_cairo_matrix_transformed_circle_major_axis):
        Fix C99'ism of mixed code and declarations.


Index: cairo-test.c
===================================================================
RCS file: /cvs/cairo/cairo/test/cairo-test.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- cairo-test.c	20 Aug 2005 14:56:05 -0000	1.54
+++ cairo-test.c	23 Aug 2005 12:18:48 -0000	1.55
@@ -376,7 +376,7 @@
     if (height == 0)
 	height = 1;
 
-    xtc->dpy = dpy = XOpenDisplay (0);
+    xtc->dpy = dpy = XOpenDisplay (NULL);
     if (xtc->dpy == NULL) {
 	cairo_test_log ("Failed to open display: %s\n", XDisplayName(0));
 	return NULL;



More information about the cairo-commit mailing list