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

[libintl] const in iso code

This commit is contained in:
Witold Filipczyk 2022-02-07 19:02:40 +01:00
parent 9916273dd7
commit 26c3e5feb7
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ struct language languages[] = {
* other side, it's ISO639 for gettext as well etc. So what? --pasky */
int
iso639_to_language(char *iso639)
iso639_to_language(const char *iso639)
{
char *l = stracpy(iso639);
char *p;

View File

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