From 48a82e75469e3bea1eaa88b7fbd4d28a3f275af2 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sat, 26 Aug 2017 18:02:59 +0100 Subject: [PATCH] fmt_rfc2047.c: Tables hexindex[] and index_64[] can be const. --- sbr/fmt_rfc2047.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbr/fmt_rfc2047.c b/sbr/fmt_rfc2047.c index bd703b43..a43b5dc1 100644 --- a/sbr/fmt_rfc2047.c +++ b/sbr/fmt_rfc2047.c @@ -11,7 +11,7 @@ # include #endif -static signed char hexindex[] = { +static const signed char hexindex[] = { -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, @@ -30,7 +30,7 @@ static signed char hexindex[] = { -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 }; -static signed char index_64[128] = { +static const signed char index_64[128] = { -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,62, -1,-1,-1,63, -- 2.56.0