From cb90ed94f0b9af5afaf23187668756c9933c7d4f Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 3 Feb 2008 14:33:16 +0200 Subject: [PATCH] const in get_cp_index --- src/intl/charsets.c | 4 ++-- src/intl/charsets.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/intl/charsets.c b/src/intl/charsets.c index 19412c75..637faeba 100644 --- a/src/intl/charsets.c +++ b/src/intl/charsets.c @@ -1308,7 +1308,7 @@ flush: #ifndef USE_FASTFIND int -get_cp_index(unsigned char *name) +get_cp_index(const unsigned char *name) { int i, a; int syscp = 0; @@ -1389,7 +1389,7 @@ static struct fastfind_index ff_charsets_index /* It searchs for a charset named @name or one of its aliases and * returns index for it or -1 if not found. */ int -get_cp_index(unsigned char *name) +get_cp_index(const unsigned char *name) { const struct codepage_desc *codepage; int syscp = 0; diff --git a/src/intl/charsets.h b/src/intl/charsets.h index 75e6f843..ac7e067e 100644 --- a/src/intl/charsets.h +++ b/src/intl/charsets.h @@ -107,7 +107,7 @@ unsigned char *convert_string(struct conv_table *convert_table, void (*callback)(void *data, unsigned char *buf, int buflen), void *callback_data); -int get_cp_index(unsigned char *); +int get_cp_index(const unsigned char *); unsigned char *get_cp_name(int); unsigned char *get_cp_config_name(int); unsigned char *get_cp_mime_name(int);