From d6ce392e91751470ca20c2aa935da6ba8304b43b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Rameau?= Date: Tue, 7 Jun 2005 20:14:50 +0000 Subject: More constification. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2005-06-07 Jean-François Rameau * embed/mozilla/MozDownload.cpp: (file_is_compressed), (parse_extension): More constification. --- embed/mozilla/MozDownload.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'embed/mozilla') 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++) { -- cgit v1.2.3