]> diplodocus.org Git - nmh/blobdiff - sbr/base64.c
test-fmtdump: Increase uip/fmtdump.c coverage.
[nmh] / sbr / base64.c
index 6a30e2f0ca7e2ff5ec7c2e0cb48575657e9121e7..e8ddee7ab4124734044190e565691a1d4f102a1f 100644 (file)
@@ -11,7 +11,7 @@
 #include <h/md5.h>
 #include <inttypes.h>
 
-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,