summaryrefslogtreecommitdiff
path: root/libarchive/archive_read_support_format_cab.c
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2011-09-01 04:25:09 -0400
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2011-09-01 04:25:09 -0400
commit3caa7d2f3d95edba576892770a650d433d6d1ad2 (patch)
tree0ea78e90ba66d30122406f7336b393a19013a933 /libarchive/archive_read_support_format_cab.c
parentded05417d689fb12fa623cca6b43b273c6391626 (diff)
downloadlibarchive-3caa7d2f3d95edba576892770a650d433d6d1ad2.tar.gz
Issue 176: Const-ify several static arrays.
SVN-Revision: 3666
Diffstat (limited to 'libarchive/archive_read_support_format_cab.c')
-rw-r--r--libarchive/archive_read_support_format_cab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libarchive/archive_read_support_format_cab.c b/libarchive/archive_read_support_format_cab.c
index 67bc7127..715dd047 100644
--- a/libarchive/archive_read_support_format_cab.c
+++ b/libarchive/archive_read_support_format_cab.c
@@ -138,7 +138,7 @@ struct lzx_dec {
int error;
};
-static int slots[] = {
+static const int slots[] = {
30, 32, 34, 36, 38, 42, 50, 66, 98, 162, 290
};
#define SLOT_BASE 15
@@ -190,7 +190,7 @@ struct lzx_stream {
#define CFDATA_cbData 4
#define CFDATA_cbUncomp 6
-static char *compression_name[] = {
+static const char *compression_name[] = {
"NONE",
"MSZIP",
"Quantum",