diff src/misc.c @ 1141:37306557a63c

consts
author corvid <corvid@lavabit.com>
date Fri, 29 May 2009 03:23:34 +0000
parents fbe2ce98a4b8
children 9b57a492918b
line wrap: on
line diff
--- a/src/misc.c	Wed May 27 19:49:54 2009 +0000
+++ b/src/misc.c	Fri May 29 03:23:34 2009 +0000
@@ -27,7 +27,7 @@
  */
 char *a_Misc_escape_chars(const char *str, const char *esc_set)
 {
-   static const char *hex = "0123456789ABCDEF";
+   static const char *const hex = "0123456789ABCDEF";
    char *p = NULL;
    Dstr *dstr;
    int i;
@@ -350,9 +350,9 @@
  */
 char *a_Misc_encode_base64(const char *in)
 {
-   static const char *base64_hex = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-                                   "abcdefghijklmnopqrstuvwxyz"
-                                   "0123456789+/";
+   static const char *const base64_hex = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+                                         "abcdefghijklmnopqrstuvwxyz"
+                                         "0123456789+/";
    char *out = NULL;
    int len, i = 0;