aboutsummaryrefslogtreecommitdiffstats
path: root/mail/importers
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-09-28 18:55:20 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-09-28 18:55:20 +0800
commitdb5aeac89568d5d0178c7ab6becfe15e3babfb54 (patch)
treeda223f194cfb17b3faece638ef9d9a710ddd9d5c /mail/importers
parentd1062b7afa165532b293581026190a36c27b2616 (diff)
downloadgsoc2013-evolution-db5aeac89568d5d0178c7ab6becfe15e3babfb54.tar.gz
gsoc2013-evolution-db5aeac89568d5d0178c7ab6becfe15e3babfb54.tar.zst
gsoc2013-evolution-db5aeac89568d5d0178c7ab6becfe15e3babfb54.zip
Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to
2005-09-28 Tor Lillqvist <tml@novell.com> * importers/netscape-importer.c (netscape_get_boolean): Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to literal ASCII strings in these cases, so just casefolding ASCII is enough. Also better for portability. svn path=/trunk/; revision=30401
Diffstat (limited to 'mail/importers')
-rw-r--r--mail/importers/netscape-importer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/importers/netscape-importer.c b/mail/importers/netscape-importer.c
index 658bc2317f..d36f98ce73 100644
--- a/mail/importers/netscape-importer.c
+++ b/mail/importers/netscape-importer.c
@@ -1310,9 +1310,9 @@ netscape_get_boolean (const char *strname)
if (boolstr == NULL) {
return FALSE;
} else {
- if (strcasecmp (boolstr, "false") == 0) {
+ if (g_ascii_strcasecmp (boolstr, "false") == 0) {
return FALSE;
- } else if (strcasecmp (boolstr, "true") == 0) {
+ } else if (g_ascii_strcasecmp (boolstr, "true") == 0) {
return TRUE;
}
}