aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-François Rameau <jframeau@cvs.gnome.org>2005-06-08 04:14:50 +0800
committerJean-François Rameau <jframeau@src.gnome.org>2005-06-08 04:14:50 +0800
commitd6ce392e91751470ca20c2aa935da6ba8304b43b (patch)
treed6267c73e66d07828b48d38bd957b3718a6e7d42
parentd5a90a38aa82a6542b44e38f3f782f6b3ae43714 (diff)
downloadgsoc2013-epiphany-d6ce392e91751470ca20c2aa935da6ba8304b43b.tar
gsoc2013-epiphany-d6ce392e91751470ca20c2aa935da6ba8304b43b.tar.gz
gsoc2013-epiphany-d6ce392e91751470ca20c2aa935da6ba8304b43b.tar.bz2
gsoc2013-epiphany-d6ce392e91751470ca20c2aa935da6ba8304b43b.tar.lz
gsoc2013-epiphany-d6ce392e91751470ca20c2aa935da6ba8304b43b.tar.xz
gsoc2013-epiphany-d6ce392e91751470ca20c2aa935da6ba8304b43b.tar.zst
gsoc2013-epiphany-d6ce392e91751470ca20c2aa935da6ba8304b43b.zip
More constification.
2005-06-07 Jean-François Rameau <jframeau@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: (file_is_compressed), (parse_extension): More constification.
-rw-r--r--ChangeLog7
-rw-r--r--embed/mozilla/MozDownload.cpp4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ca3c6badc..017861842 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2005-06-07 Jean-François Rameau <jframeau@cvs.gnome.org>
+ * embed/mozilla/MozDownload.cpp: (file_is_compressed),
+ (parse_extension):
+
+ More constification.
+
+2005-06-07 Jean-François Rameau <jframeau@cvs.gnome.org>
+
* embed/mozilla/mozilla-embed.cpp: (mozilla_embed_dom_key_press_cb):
Unused var.
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp
index 08e515e03..b89707c93 100644
--- a/embed/mozilla/MozDownload.cpp
+++ b/embed/mozilla/MozDownload.cpp
@@ -755,7 +755,7 @@ static const char*
file_is_compressed (const char *filename)
{
int i;
- const char *compression[] = {".gz", ".bz2", ".Z", ".lz", NULL};
+ static const char * const compression[] = {".gz", ".bz2", ".Z", ".lz", NULL};
for (i = 0; compression[i] != NULL; i++)
{
@@ -777,7 +777,7 @@ parse_extension (const char *filename)
if (compression != NULL)
{
int i;
- const char *extensions[] = {"tar", "ps", "xcf", "dvi", "txt", "text", NULL};
+ static const char * const extensions[] = {"tar", "ps", "xcf", "dvi", "txt", "text", NULL};
for (i = 0; extensions[i] != NULL; i++)
{