From db5aeac89568d5d0178c7ab6becfe15e3babfb54 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 28 Sep 2005 10:55:20 +0000 Subject: Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to 2005-09-28 Tor Lillqvist * 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 --- mail/ChangeLog | 9 +++++---- mail/importers/netscape-importer.c | 4 ++-- 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; } } -- cgit