aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--mail/ChangeLog9
-rw-r--r--mail/importers/netscape-importer.c4
2 files changed, 7 insertions, 6 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 3f73d8e3c2..330e466e0a 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -2,10 +2,11 @@
* em-composer-utils.c (reply_get_composer, get_reply_list,
post_reply_to_message)
- * em-folder-view.c (emfv_format_link_clicked): Use
- g_ascii_strncasecmp() instead of strncasecmp(). We are comparing
- to literal ASCII strings, so just casefolding ASCII is
- enough. Also better for portability.
+ * em-folder-view.c (emfv_format_link_clicked)
+ * importers/netscape-importer.c (netscape_get_boolean): Use
+ g_ascii_str(n)casecmp() instead of str(n)casecmp(). We are
+ comparing to literal ASCII strings in these cases, so just
+ casefolding ASCII is enough. Also better for portability.
* em-format-html-display.c
* message-list.c: Define localtime_r() for Win32 using localtime()
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;
}
}