From: David Levine Date: Sun, 6 Nov 2016 22:39:13 +0000 (-0500) Subject: Made static char strings const. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/30c889422a04c903350797f9c192bb6fb075f68e?hp=742c1c9d19d543264d2d96523fc64aa00737ad02 Made static char strings const. --- diff --git a/sbr/base64.c b/sbr/base64.c index 6a30e2f0..e8ddee7a 100644 --- a/sbr/base64.c +++ b/sbr/base64.c @@ -11,7 +11,7 @@ #include #include -static char nib2b64[0x40+1] = +static const char nib2b64[0x40+1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; int @@ -209,7 +209,7 @@ writeBase64raw (const unsigned char *in, size_t length, unsigned char *out) } -static unsigned char b642nib[0x80] = { +static const unsigned char b642nib[0x80] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,