]> sjero.net Git - wget/commitdiff
[svn] Made base64 tables const.
authorhniksic <devnull@localhost>
Tue, 20 Jun 2006 08:18:59 +0000 (01:18 -0700)
committerhniksic <devnull@localhost>
Tue, 20 Jun 2006 08:18:59 +0000 (01:18 -0700)
src/ChangeLog
src/utils.c

index c1edde44ab02a231b2ff42536b1da8bf4f674676..84c666448b07f87b6b8bc6fab01831f33f041470 100644 (file)
@@ -1,5 +1,10 @@
 2006-06-20  Hrvoje Niksic  <hniksic@xemacs.org>
 
+       * utils.c (base64_encode): Made TBL const.
+       (base64_decode): Made the base64_char_to_value table const.
+
+2006-06-19  Hrvoje Niksic  <hniksic@xemacs.org>
+
        * utils.c (base64_encode): Made the DATA pointer void * so the
        callers can pass it any kind of pointer (including both signed and
        unsigned char pointers).
index 9ed8526a43bf6e66e9874d56a8b86ebaacbe4821..1bda8300e0f2d90c243a5325570f136ffe0c04c5 100644 (file)
@@ -1970,7 +1970,7 @@ base64_decode (const char *base64, void *dest)
 {
   /* Table of base64 values for first 128 characters.  Note that this
      assumes ASCII (but so does Wget in other places).  */
-  static signed char base64_char_to_value[128] =
+  static const signed char base64_char_to_value[128] =
     {
       -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, /*   0-  9 */
       -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, /*  10- 19 */