mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Made base64 tables const.
This commit is contained in:
parent
56897eceb5
commit
09d44f355f
@ -1,5 +1,10 @@
|
|||||||
2006-06-20 Hrvoje Niksic <hniksic@xemacs.org>
|
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
|
* utils.c (base64_encode): Made the DATA pointer void * so the
|
||||||
callers can pass it any kind of pointer (including both signed and
|
callers can pass it any kind of pointer (including both signed and
|
||||||
unsigned char pointers).
|
unsigned char pointers).
|
||||||
|
@ -1970,7 +1970,7 @@ base64_decode (const char *base64, void *dest)
|
|||||||
{
|
{
|
||||||
/* Table of base64 values for first 128 characters. Note that this
|
/* Table of base64 values for first 128 characters. Note that this
|
||||||
assumes ASCII (but so does Wget in other places). */
|
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, /* 0- 9 */
|
||||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 10- 19 */
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 10- 19 */
|
||||||
|
Loading…
Reference in New Issue
Block a user