diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2004-10-28 15:00:05 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-10-28 15:00:05 +0000 |
commit | d5f92150d4b8bffb78cd5110cbb2c28bfdf81136 (patch) | |
tree | 0d79978a95c24dcbdb2d9fd577dedf0da2795ece /contrib/gdk-pixbuf-xlib | |
parent | dbba41045ecb383810fb8962ee9b83998a89c37d (diff) | |
download | gtk+-d5f92150d4b8bffb78cd5110cbb2c28bfdf81136.tar.gz |
Fix many sparse warnings.
Diffstat (limited to 'contrib/gdk-pixbuf-xlib')
-rw-r--r-- | contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.c b/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.c index 351e4dae54..b5d0f8e3e9 100644 --- a/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.c +++ b/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.c @@ -821,7 +821,7 @@ xlib_rgb_init_with_depth (Display *display, Screen *screen, int prefDepth) image_info->stage_buf = NULL; - image_info->own_gc = 0; + image_info->own_gc = NULL; image_info->red_shift = 0; image_info->red_prec = 0; @@ -908,7 +908,7 @@ xlib_rgb_init_with_depth (Display *display, Screen *screen, int prefDepth) image_info->x_visual_info->visual, 1, XYBitmap, - 0, 0, IMAGE_WIDTH, IMAGE_HEIGHT, + 0, NULL, IMAGE_WIDTH, IMAGE_HEIGHT, 8, 0); static_image[i]->data = malloc(IMAGE_WIDTH * IMAGE_HEIGHT >> 3); @@ -920,7 +920,7 @@ xlib_rgb_init_with_depth (Display *display, Screen *screen, int prefDepth) image_info->x_visual_info->visual, (unsigned int)image_info->x_visual_info->depth, ZPixmap, - 0, 0, + 0, NULL, IMAGE_WIDTH, IMAGE_HEIGHT, 32, 0); @@ -3651,7 +3651,7 @@ xlib_rgb_get_visual (void) if (image_info) return image_info->x_visual_info->visual; else - return 0; + return NULL; } /** @@ -3668,7 +3668,7 @@ xlib_rgb_get_visual_info (void) if (image_info) return image_info->x_visual_info; else - return 0; + return NULL; } /** |