1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

const in name_to_language

This commit is contained in:
Kalle Olavi Niemitalo 2008-02-03 14:36:27 +02:00 committed by Kalle Olavi Niemitalo
parent cb90ed94f0
commit 11e9a816f5
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ language_to_iso639(int language)
} }
int int
name_to_language(unsigned char *name) name_to_language(const unsigned char *name)
{ {
int i; int i;

View File

@ -170,7 +170,7 @@ struct language {
extern struct language languages[]; extern struct language languages[];
/* These two calls return 1 (english) if the code/name wasn't found. */ /* These two calls return 1 (english) if the code/name wasn't found. */
extern int name_to_language(unsigned char *name); extern int name_to_language(const unsigned char *name);
extern int iso639_to_language(unsigned char *iso639); extern int iso639_to_language(unsigned char *iso639);
extern unsigned char *language_to_name(int language); extern unsigned char *language_to_name(int language);