From bb1c36c74db8723120846cd74207cf4df1c127bc Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 28 Sep 2005 10:12:16 +0000 Subject: Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to 2005-09-28 Tor Lillqvist * gui/itip-bonobo-control.c (pstream_load, pstream_save): Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to literal ASCII strings, just casefolding ASCII is enough. Also better for portability. svn path=/trunk/; revision=30394 --- calendar/ChangeLog | 9 +++++---- calendar/gui/itip-bonobo-control.c | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 71fc1a6f25..877fcd0f75 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,10 +1,11 @@ 2005-09-28 Tor Lillqvist * gui/e-cal-model-calendar.c (set_transparency) - * gui/e-cal-model.c (set_classification): Use g_ascii_strcasecmp() - instead of strcasecmp(). We are comparing to literal ASCII - strings, just casefolding ASCII is enough. Also better for - portability. + * gui/e-cal-model.c (set_classification) + * gui/itip-bonobo-control.c (pstream_load, pstream_save): Use + g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to + literal ASCII strings, just casefolding ASCII is enough. Also + better for portability. 2005-09-08 P. S. Chakravarthi diff --git a/calendar/gui/itip-bonobo-control.c b/calendar/gui/itip-bonobo-control.c index 391bc1f73d..0a7f61b172 100644 --- a/calendar/gui/itip-bonobo-control.c +++ b/calendar/gui/itip-bonobo-control.c @@ -121,8 +121,8 @@ pstream_load (BonoboPersistStream *ps, const Bonobo_Stream stream, EItipControl *itip = data; idle_data *id; - if (type && g_strcasecmp (type, "text/calendar") != 0 && - g_strcasecmp (type, "text/x-calendar") != 0) { + if (type && g_ascii_strcasecmp (type, "text/calendar") != 0 && + g_ascii_strcasecmp (type, "text/x-calendar") != 0) { bonobo_exception_set (ev, ex_Bonobo_Persist_WrongDataType); return; } @@ -150,8 +150,8 @@ pstream_save (BonoboPersistStream *ps, const Bonobo_Stream stream, gchar *text; gint len; - if (type && g_strcasecmp (type, "text/calendar") != 0 && - g_strcasecmp (type, "text/x-calendar") != 0) { + if (type && g_ascii_strcasecmp (type, "text/calendar") != 0 && + g_ascii_strcasecmp (type, "text/x-calendar") != 0) { bonobo_exception_set (ev, ex_Bonobo_Persist_WrongDataType); return; } -- cgit v1.2.3