mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Make get_entity_string return a pointer to const.
This commit is contained in:
parent
83f753f750
commit
d314348e92
@ -988,7 +988,7 @@ compare_entities(const void *key_, const void *element_)
|
|||||||
return xxstrcmp(first, second, length);
|
return xxstrcmp(first, second, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char *
|
const unsigned char *
|
||||||
get_entity_string(const unsigned char *str, const int strlen, int encoding)
|
get_entity_string(const unsigned char *str, const int strlen, int encoding)
|
||||||
{
|
{
|
||||||
#define ENTITY_CACHE_SIZE 10 /* 10 seems a good value. */
|
#define ENTITY_CACHE_SIZE 10 /* 10 seems a good value. */
|
||||||
|
@ -72,7 +72,8 @@ enum nbsp_mode {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct conv_table *get_translation_table(int, int);
|
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
|
/* The convert_string() name is also used by Samba (version 3.0.3), which
|
||||||
* provides libnss_wins.so.2, which is called somewhere inside
|
* provides libnss_wins.so.2, which is called somewhere inside
|
||||||
|
Loading…
Reference in New Issue
Block a user