Bool ok;
ok = True;
- if ((uStrCaseCmp(field, "modifiers") == 0)
- || (uStrCaseCmp(field, "mods") == 0))
+ if ((strcasecmp(field, "modifiers") == 0) ||
+ (strcasecmp(field, "mods") == 0))
{
if (arrayNdx != NULL)
return ReportIndicatorNotArray(led, field);
led->vmods = (rtrn.uval >> 8) & 0xff;
led->defs.defined |= _LED_Mods;
}
- else if (uStrCaseCmp(field, "groups") == 0)
+ else if (strcasecmp(field, "groups") == 0)
{
if (arrayNdx != NULL)
return ReportIndicatorNotArray(led, field);
led->groups = rtrn.uval;
led->defs.defined |= _LED_Groups;
}
- else if ((uStrCaseCmp(field, "controls") == 0) ||
- (uStrCaseCmp(field, "ctrls") == 0))
+ else if ((strcasecmp(field, "controls") == 0) ||
+ (strcasecmp(field, "ctrls") == 0))
{
if (arrayNdx != NULL)
return ReportIndicatorNotArray(led, field);
led->ctrls = rtrn.uval;
led->defs.defined |= _LED_Ctrls;
}
- else if (uStrCaseCmp(field, "allowexplicit") == 0)
+ else if (strcasecmp(field, "allowexplicit") == 0)
{
if (arrayNdx != NULL)
return ReportIndicatorNotArray(led, field);
led->flags |= XkbIM_NoExplicit;
led->defs.defined |= _LED_Explicit;
}
- else if ((uStrCaseCmp(field, "whichmodstate") == 0) ||
- (uStrCaseCmp(field, "whichmodifierstate") == 0))
+ else if ((strcasecmp(field, "whichmodstate") == 0) ||
+ (strcasecmp(field, "whichmodifierstate") == 0))
{
if (arrayNdx != NULL)
return ReportIndicatorNotArray(led, field);
}
led->which_mods = rtrn.uval;
}
- else if (uStrCaseCmp(field, "whichgroupstate") == 0)
+ else if (strcasecmp(field, "whichgroupstate") == 0)
{
if (arrayNdx != NULL)
return ReportIndicatorNotArray(led, field);
}
led->which_groups = rtrn.uval;
}
- else if ((uStrCaseCmp(field, "driveskbd") == 0) ||
- (uStrCaseCmp(field, "driveskeyboard") == 0) ||
- (uStrCaseCmp(field, "leddriveskbd") == 0) ||
- (uStrCaseCmp(field, "leddriveskeyboard") == 0) ||
- (uStrCaseCmp(field, "indicatordriveskbd") == 0) ||
- (uStrCaseCmp(field, "indicatordriveskeyboard") == 0))
+ else if ((strcasecmp(field, "driveskbd") == 0) ||
+ (strcasecmp(field, "driveskeyboard") == 0) ||
+ (strcasecmp(field, "leddriveskbd") == 0) ||
+ (strcasecmp(field, "leddriveskeyboard") == 0) ||
+ (strcasecmp(field, "indicatordriveskbd") == 0) ||
+ (strcasecmp(field, "indicatordriveskeyboard") == 0))
{
if (arrayNdx != NULL)
return ReportIndicatorNotArray(led, field);
led->flags &= ~XkbIM_LEDDrivesKB;
led->defs.defined |= _LED_DrivesKbd;
}
- else if (uStrCaseCmp(field, "index") == 0)
+ else if (strcasecmp(field, "index") == 0)
{
if (arrayNdx != NULL)
return ReportIndicatorNotArray(led, field);