diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2005-11-17 14:57:24 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-11-17 14:57:24 +0000 |
commit | 9b593427aab6bb5bd63bd7d657e871c66bf1704a (patch) | |
tree | 07025be116029ed4745df8c48d925bdc8a1b93df /contrib | |
parent | 81be0b4311765c54dedfa16079444b844ef5cf8b (diff) | |
download | gtk+-9b593427aab6bb5bd63bd7d657e871c66bf1704a.tar.gz |
const correctness fixes
found by Arjan van de Ven and gcc.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gdk-pixbuf-xlib/ChangeLog | 6 | ||||
-rw-r--r-- | contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c | 4 | ||||
-rw-r--r-- | contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.c | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/contrib/gdk-pixbuf-xlib/ChangeLog b/contrib/gdk-pixbuf-xlib/ChangeLog index be68449d57..fbd75fa8b4 100644 --- a/contrib/gdk-pixbuf-xlib/ChangeLog +++ b/contrib/gdk-pixbuf-xlib/ChangeLog @@ -1,3 +1,9 @@ +2005-11-17 Matthias Clasen <mclasen@redhat.com> + + * gdk-pixbuf-xlib-drawable.c: + * gdk-pixbuf-xlibrgb.c: const correctness fixes + found by Arjan van de Ven and gcc. + 2005-10-05 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-xlib-2.0.pc.in (Requires): Require diff --git a/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c b/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c index da9dae2f80..38ad9b20b9 100644 --- a/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c +++ b/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c @@ -41,7 +41,7 @@ -static guint32 mask_table[] = { +static const guint32 mask_table[] = { 0x00000000, 0x00000001, 0x00000003, 0x00000007, 0x0000000f, 0x0000001f, 0x0000003f, 0x0000007f, 0x000000ff, 0x000001ff, 0x000003ff, 0x000007ff, @@ -1058,7 +1058,7 @@ convert_real_slow (XImage *image, guchar *pixels, int rowstride, xlib_colormap * typedef void (* cfunc) (XImage *image, guchar *pixels, int rowstride, xlib_colormap *cmap); -static cfunc convert_map[] = { +static const cfunc convert_map[] = { rgb1,rgb1,rgb1a,rgb1a, rgb8,rgb8,rgb8a,rgb8a, rgb555lsb,rgb555msb,rgb555alsb,rgb555amsb, diff --git a/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.c b/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.c index b5d0f8e3e9..701f34a9dd 100644 --- a/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.c +++ b/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.c @@ -516,7 +516,7 @@ static guint32 xlib_rgb_score_visual (XVisualInfo *visual) { guint32 quality, speed, pseudo, sys; - static const char* visual_names[] = + static const char * const visual_names[] = { "static gray", "grayscale", |