Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to
2005-09-28 Tor Lillqvist <tml@novell.com> * 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. svn path=/trunk/; revision=30393
This commit is contained in:
committed by
Tor Lillqvist
parent
a527f28812
commit
11ed217073
@ -1,9 +1,10 @@
|
||||
2005-09-28 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* gui/e-cal-model-calendar.c (set_transparency): 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-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.
|
||||
|
||||
2005-09-08 P. S. Chakravarthi <pchakravarthi@novell.com>
|
||||
|
||||
|
||||
@ -543,11 +543,11 @@ set_classification (ECalModelComponent *comp_data, const char *value)
|
||||
} else {
|
||||
icalproperty_class ical_class;
|
||||
|
||||
if (!strcasecmp (value, "PUBLIC"))
|
||||
if (!g_ascii_strcasecmp (value, "PUBLIC"))
|
||||
ical_class = ICAL_CLASS_PUBLIC;
|
||||
else if (!strcasecmp (value, "PRIVATE"))
|
||||
else if (!g_ascii_strcasecmp (value, "PRIVATE"))
|
||||
ical_class = ICAL_CLASS_PRIVATE;
|
||||
else if (!strcasecmp (value, "CONFIDENTIAL"))
|
||||
else if (!g_ascii_strcasecmp (value, "CONFIDENTIAL"))
|
||||
ical_class = ICAL_CLASS_CONFIDENTIAL;
|
||||
else
|
||||
ical_class = ICAL_CLASS_NONE;
|
||||
|
||||
Reference in New Issue
Block a user