From 09d44f355fbdafdaedd984a57f5db3e9b92dbddd Mon Sep 17 00:00:00 2001
From: hniksic <devnull@localhost>
Date: Tue, 20 Jun 2006 01:18:59 -0700
Subject: [PATCH] [svn] Made base64 tables const.

---
 src/ChangeLog | 5 +++++
 src/utils.c   | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index c1edde44..84c66644 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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).
diff --git a/src/utils.c b/src/utils.c
index 9ed8526a..1bda8300 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -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 */