1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

const in get_cp_index

(cherry picked from commit cb90ed94f0)
This commit is contained in:
Kalle Olavi Niemitalo 2008-02-03 14:33:16 +02:00 committed by Kalle Olavi Niemitalo
parent b105694db3
commit bd6c562a73
2 changed files with 3 additions and 3 deletions

View File

@ -724,7 +724,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;
@ -805,7 +805,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)
{
struct codepage_desc *codepage;
int syscp = 0;

View File

@ -54,7 +54,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_mime_name(int);
int is_cp_special(int);