summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-tga.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-12-18 22:55:15 -0500
committerMatthias Clasen <mclasen@redhat.com>2013-12-18 22:55:15 -0500
commitf9c233bdbc04abb41921bf11171c79556b8f139b (patch)
tree3798b0644c19bf955f23a46118e707664e5e0e76 /gdk-pixbuf/io-tga.c
parent1a3a44ee9766c7f3e81135619ec1ab848c36371f (diff)
downloadgdk-pixbuf-f9c233bdbc04abb41921bf11171c79556b8f139b.tar.gz
Make some string data const
https://bugzilla.gnome.org/show_bug.cgi?id=144042
Diffstat (limited to 'gdk-pixbuf/io-tga.c')
-rw-r--r--gdk-pixbuf/io-tga.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdk-pixbuf/io-tga.c b/gdk-pixbuf/io-tga.c
index 5ef14fade..e6e9ce1fd 100644
--- a/gdk-pixbuf/io-tga.c
+++ b/gdk-pixbuf/io-tga.c
@@ -983,7 +983,7 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
{
- static GdkPixbufModulePattern signature[] = {
+ static const GdkPixbufModulePattern signature[] = {
{ " \x1\x1", "x ", 100 },
{ " \x1\x9", "x ", 100 },
{ " \x2", "xz ", 99 }, /* only 99 since .CUR also matches this */
@@ -992,21 +992,21 @@ MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
{ " \xb", "xz ", 100 },
{ NULL, NULL, 0 }
};
- static gchar * mime_types[] = {
+ static const gchar *mime_types[] = {
"image/x-tga",
NULL
};
- static gchar * extensions[] = {
+ static const gchar *extensions[] = {
"tga",
"targa",
NULL
};
info->name = "tga";
- info->signature = signature;
+ info->signature = (GdkPixbufModulePattern *) signature;
info->description = N_("The Targa image format");
- info->mime_types = mime_types;
- info->extensions = extensions;
+ info->mime_types = (gchar **) mime_types;
+ info->extensions = (gchar **) extensions;
info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
info->license = "LGPL";
}