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:
parent
cb90ed94f0
commit
11e9a816f5
@ -147,7 +147,7 @@ language_to_iso639(int language)
|
||||
}
|
||||
|
||||
int
|
||||
name_to_language(unsigned char *name)
|
||||
name_to_language(const unsigned char *name)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -170,7 +170,7 @@ struct language {
|
||||
extern struct language languages[];
|
||||
|
||||
/* 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 unsigned char *language_to_name(int language);
|
||||
|
Loading…
Reference in New Issue
Block a user