From: Ralph Corderoy Date: Sat, 26 Aug 2017 17:02:59 +0000 (+0100) Subject: fmt_rfc2047.c: Tables hexindex[] and index_64[] can be const. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/48a82e75469e3bea1eaa88b7fbd4d28a3f275af2?hp=9ffabd06f0dc8e7478b7484fceee4906990d44e2 fmt_rfc2047.c: Tables hexindex[] and index_64[] can be const. --- 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,