1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

Make get_entity_string return a pointer to const.

This commit is contained in:
Kalle Olavi Niemitalo 2007-01-02 08:29:08 +02:00 committed by Kalle Olavi Niemitalo
parent 83f753f750
commit d314348e92
2 changed files with 3 additions and 2 deletions

View File

@ -988,7 +988,7 @@ compare_entities(const void *key_, const void *element_)
return xxstrcmp(first, second, length);
}
unsigned char *
const unsigned char *
get_entity_string(const unsigned char *str, const int strlen, int encoding)
{
#define ENTITY_CACHE_SIZE 10 /* 10 seems a good value. */

View File

@ -72,7 +72,8 @@ enum nbsp_mode {
};
struct conv_table *get_translation_table(int, int);
unsigned char *get_entity_string(const unsigned char *str, const int strlen, int encoding);
const unsigned char *get_entity_string(const unsigned char *str,
const int strlen, int encoding);
/* The convert_string() name is also used by Samba (version 3.0.3), which
* provides libnss_wins.so.2, which is called somewhere inside