From 712803bbeb44da7158679d5121570e3a4da4f75a Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Tue, 2 Jan 2007 20:08:25 +0200 Subject: [PATCH] Make entity_cache.result point to const. --- src/intl/charsets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intl/charsets.c b/src/intl/charsets.c index 34f326d2e..4e13819d1 100644 --- a/src/intl/charsets.c +++ b/src/intl/charsets.c @@ -964,7 +964,7 @@ struct entity_cache { unsigned int hits; int strlen; int encoding; - unsigned char *result; + const unsigned char *result; unsigned char str[20]; /* Suffice in any case. */ }; @@ -998,7 +998,7 @@ get_entity_string(const unsigned char *str, const int strlen, int encoding) static unsigned int nb_entity_cache[ENTITY_CACHE_MAXLEN]; static int first_time = 1; unsigned int slen = 0; - unsigned char *result = NULL; + const unsigned char *result = NULL; if (strlen <= 0) return NULL;