From 455ea77eadbf20b0e34fb6f84ed1d85bab15a06a Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Tue, 2 Jan 2007 21:40:14 +0200 Subject: [PATCH] Make strings[] and no_str[] const. --- src/intl/charsets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intl/charsets.c b/src/intl/charsets.c index e1eb11a8..56044313 100644 --- a/src/intl/charsets.c +++ b/src/intl/charsets.c @@ -70,7 +70,7 @@ struct codepage_desc { #include "intl/entity.inc" -static char strings[256][2] = { +static const char strings[256][2] = { "\000", "\001", "\002", "\003", "\004", "\005", "\006", "\007", "\010", "\011", "\012", "\013", "\014", "\015", "\016", "\017", "\020", "\021", "\022", "\023", "\024", "\025", "\026", "\033", @@ -122,7 +122,7 @@ free_translation_table(struct conv_table *p) * named array rather than a pointer so that it won't share storage * with any other string literal that happens to have the same * characters. */ -static unsigned char no_str[] = "*"; +static const unsigned char no_str[] = "*"; static void new_translation_table(struct conv_table *p)