From 44ef733433c078d2552766922b69b1a4e0678177 Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Sat, 14 Sep 2002 13:30:56 +0000 Subject: [PATCH] [!pc_system]: Make Fake_Alt_Char_Pairs[] const array --- slang/slsmg.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/slang/slsmg.c b/slang/slsmg.c index b891c0ec9..d548c0bc9 100644 --- a/slang/slsmg.c +++ b/slang/slsmg.c @@ -784,13 +784,14 @@ void SLsmg_touch_lines (int row, int n) } #ifndef pc_system -static char Fake_Alt_Char_Pairs [] = "a:j+k+l+m+q-t+u+v+w+x|n+`+f\\g#~o,<+>.v-^h#0#"; +static const char Fake_Alt_Char_Pairs [] = "a:j+k+l+m+q-t+u+v+w+x|n+`+f\\g#~o,<+>.v-^h#0#"; static void init_alt_char_set (void) { int i; - unsigned char *p, *pmax, ch; - + const unsigned char *p, *pmax; + unsigned char ch; + if (Alt_Char_Set[128] == 128) return; i = 32;