1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-30 01:55:30 +00:00

const in get_cp_index

This commit is contained in:
Kalle Olavi Niemitalo 2008-02-03 14:33:16 +02:00 committed by Kalle Olavi Niemitalo
parent 49ea10a74d
commit cb90ed94f0
2 changed files with 3 additions and 3 deletions

View File

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

View File

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