[glib/resources] Make generated resource array const
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/resources] Make generated resource array const
- Date: Thu, 22 Dec 2011 10:55:47 +0000 (UTC)
commit 3675860f1a81339b2220656b06a2036a7870ea96
Author: Alexander Larsson <alexl redhat com>
Date: Thu Dec 22 11:20:59 2011 +0100
Make generated resource array const
gio/glib-compile-resources.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/glib-compile-resources.c b/gio/glib-compile-resources.c
index 5c78d5e..65f365d 100644
--- a/gio/glib-compile-resources.c
+++ b/gio/glib-compile-resources.c
@@ -541,7 +541,7 @@ main (int argc, char **argv)
fprintf (file, "#include <gio/gio.h>\n");
fprintf (file, "\n");
- fprintf (file, "static guint8 resource_data[] = {\n");
+ fprintf (file, "static const guint8 resource_data[] = {\n");
for (i = 0; i < data_size; i++) {
if (i % 8 == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]