diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | embed/mozilla/MozDownload.cpp | 4 |
2 files changed, 9 insertions, 2 deletions
@@ -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++) { |