mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-29 20:52:16 -05:00
Fix warnings
This commit is contained in:
parent
9772eae568
commit
a656cee382
@ -41,7 +41,7 @@
|
|||||||
#define DEF_FONT "Monospace 9"
|
#define DEF_FONT "Monospace 9"
|
||||||
#define DEF_FONT_ALTER "Arial Unicode MS,Lucida Sans Unicode,MS Gothic,Unifont"
|
#define DEF_FONT_ALTER "Arial Unicode MS,Lucida Sans Unicode,MS Gothic,Unifont"
|
||||||
|
|
||||||
const char const *languages[LANGUAGES_LENGTH] = {
|
const char * const languages[LANGUAGES_LENGTH] = {
|
||||||
"af", "sq", "am", "ast", "az", "eu", "be", "bg", "ca", "zh_CN", /* 0 .. 9 */
|
"af", "sq", "am", "ast", "az", "eu", "be", "bg", "ca", "zh_CN", /* 0 .. 9 */
|
||||||
"zh_TW", "cs", "da", "nl", "en_GB", "en", "et", "fi", "fr", "gl", /* 10 .. 19 */
|
"zh_TW", "cs", "da", "nl", "en_GB", "en", "et", "fi", "fr", "gl", /* 10 .. 19 */
|
||||||
"de", "el", "gu", "hi", "hu", "id", "it", "ja", "kn", "rw", /* 20 .. 29 */
|
"de", "el", "gu", "hi", "hu", "id", "it", "ja", "kn", "rw", /* 20 .. 29 */
|
||||||
@ -630,7 +630,7 @@ convert_with_fallback (const char *str, const char *fallback)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
find_language_number (const char const *lang)
|
find_language_number (const char * const lang)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#define LANGUAGES_LENGTH 52
|
#define LANGUAGES_LENGTH 52
|
||||||
|
|
||||||
extern char *xdir;
|
extern char *xdir;
|
||||||
extern const char const *languages[LANGUAGES_LENGTH];
|
extern const char * const languages[LANGUAGES_LENGTH];
|
||||||
|
|
||||||
char *cfg_get_str (char *cfg, const char *var, char *dest, int dest_len);
|
char *cfg_get_str (char *cfg, const char *var, char *dest, int dest_len);
|
||||||
int cfg_get_bool (char *var);
|
int cfg_get_bool (char *var);
|
||||||
|
Loading…
Reference in New Issue
Block a user