1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Make entity_cache.result point to const.

This commit is contained in:
Kalle Olavi Niemitalo 2007-01-02 20:08:25 +02:00 committed by Kalle Olavi Niemitalo
parent d314348e92
commit 712803bbeb

View File

@ -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;