aboutsummaryrefslogtreecommitdiffstats
path: root/embed
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 /embed
parentd5a90a38aa82a6542b44e38f3f782f6b3ae43714 (diff)
downloadgsoc2013-epiphany-d6ce392e91751470ca20c2aa935da6ba8304b43b.tar.gz
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.
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/MozDownload.cpp4
1 files changed, 2 insertions, 2 deletions
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++)
{