From d314348e923a06f8081da37ab82972ad9a2e7e09 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Tue, 2 Jan 2007 08:29:08 +0200 Subject: [PATCH] Make get_entity_string return a pointer to const. --- src/intl/charsets.c | 2 +- src/intl/charsets.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/intl/charsets.c b/src/intl/charsets.c index 6df8e8ad..34f326d2 100644 --- a/src/intl/charsets.c +++ b/src/intl/charsets.c @@ -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. */ diff --git a/src/intl/charsets.h b/src/intl/charsets.h index edae15f6..db123a24 100644 --- a/src/intl/charsets.h +++ b/src/intl/charsets.h @@ -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