From ce86a63418c84606c16bc231124bf200a0c5271a Mon Sep 17 00:00:00 2001
From: Vit Rosin <vit_r@list.ru>
Date: Sat, 6 Mar 2010 21:15:19 +0000
Subject: [PATCH] repl deprecated g_strcasecmp by g_ascii_strcasecmp
---
lib/strutil/strutil8bit.c | 2 +-
lib/vfs/mc-vfs/ftpfs.c | 6 +++---
src/setup.c | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/lib/strutil/strutil8bit.c b/lib/strutil/strutil8bit.c
index f8a934f..d19c849 100644
a
|
b
|
str_8bit_ncompare (const char *t1, const char *t2) |
643 | 643 | static int |
644 | 644 | str_8bit_casecmp (const char *t1, const char *t2) |
645 | 645 | { |
646 | | return g_strcasecmp (t1, t2); |
| 646 | return g_ascii_strcasecmp (t1, t2); |
647 | 647 | } |
648 | 648 | |
649 | 649 | static int |
diff --git a/lib/vfs/mc-vfs/ftpfs.c b/lib/vfs/mc-vfs/ftpfs.c
index 93bfab6..6e7a3df 100644
a
|
b
|
ftpfs_check_proxy (const char *host) |
643 | 643 | if (!ld) |
644 | 644 | return 0; |
645 | 645 | } else |
646 | | if (!g_strcasecmp (host, domain)) |
| 646 | if (!g_ascii_strcasecmp (host, domain)) |
647 | 647 | return 0; |
648 | 648 | } |
649 | 649 | |
… |
… |
static int ftpfs_find_machine (const char *host, const char *domain) |
1980 | 1980 | if (ftpfs_netrc_next () == NETRC_NONE) |
1981 | 1981 | break; |
1982 | 1982 | |
1983 | | if (g_strcasecmp (host, buffer)) { |
| 1983 | if (g_ascii_strcasecmp (host, buffer)) { |
1984 | 1984 | /* Try adding our domain to short names in .netrc */ |
1985 | 1985 | const char *host_domain = strchr (host, '.'); |
1986 | 1986 | if (!host_domain) |
1987 | 1987 | continue; |
1988 | 1988 | |
1989 | 1989 | /* Compare domain part */ |
1990 | | if (g_strcasecmp (host_domain, domain)) |
| 1990 | if (g_ascii_strcasecmp (host_domain, domain)) |
1991 | 1991 | continue; |
1992 | 1992 | |
1993 | 1993 | /* Compare local part */ |
diff --git a/src/setup.c b/src/setup.c
index 78dfb1b..0a78a43 100644
a
|
b
|
panel_load_setup (WPanel * panel, const char *section) |
449 | 449 | buffer = mc_config_get_string (mc_panels_config, section, "list_mode", "full"); |
450 | 450 | panel->list_type = list_full; |
451 | 451 | for (i = 0; list_types[i].key; i++) |
452 | | if (g_strcasecmp (list_types[i].key, buffer) == 0) |
| 452 | if (g_ascii_strcasecmp (list_types[i].key, buffer) == 0) |
453 | 453 | { |
454 | 454 | panel->list_type = list_types[i].list_type; |
455 | 455 | break; |
… |
… |
setup__load_panel_state (const char *section) |
494 | 494 | buffer = mc_config_get_string (mc_panels_config, section, "display", "listing"); |
495 | 495 | |
496 | 496 | for (i = 0; panel_types[i].opt_name != NULL; i++) |
497 | | if (g_strcasecmp (panel_types[i].opt_name, buffer) == 0) |
| 497 | if (g_ascii_strcasecmp (panel_types[i].opt_name, buffer) == 0) |
498 | 498 | { |
499 | 499 | mode = panel_types[i].opt_type; |
500 | 500 | break; |
… |
… |
load_keys_from_section (const char *terminal, mc_config_t * cfg) |
933 | 933 | { |
934 | 934 | |
935 | 935 | /* copy=other causes all keys from [terminal:other] to be loaded. */ |
936 | | if (g_strcasecmp (*profile_keys, "copy") == 0) |
| 936 | if (g_ascii_strcasecmp (*profile_keys, "copy") == 0) |
937 | 937 | { |
938 | 938 | valcopy = mc_config_get_string (cfg, section_name, *profile_keys, ""); |
939 | 939 | load_keys_from_section (valcopy, cfg); |