openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/template.c
static void apply_case_sensitivity(struct template* pTpl)
{
    if (pTpl->optCaseSensitive)
        return;

    struct templateEntry* pTpe;

    for (pTpe = pTpl->pEntryRoot; pTpe != NULL; pTpe = pTpe->pNext)
    {
        if (pTpe->eEntryType == FIELD)
        {
            if (pTpe->data.field.msgProp.id == PROP_CEE ||
                pTpe->data.field.msgProp.id == PROP_LOCAL_VAR ||
                pTpe->data.field.msgProp.id == PROP_GLOBAL_VAR)
            {
                uchar* p;
                p = pTpe->fieldName;
                for (; *p; ++p)
                    *p = tolower(*p);
                p = pTpe->data.field.msgProp.name;
                for (; *p; ++p)
                    *p = tolower(*p);
            }
        }
    }
}
/* Helper function to apply case-sensitivity to templates.
 */
Helper function to apply case-sensitivity to templates.
Helper function to apply case - sensitivity to templates .
static void apply_case_sensitivity(struct template* pTpl)
{
    if (pTpl->optCaseSensitive)
        return;
    struct templateEntry* pTpe;
    for (pTpe = pTpl->pEntryRoot; pTpe != NULL; pTpe = pTpe->pNext)
    {
        if (pTpe->eEntryType == FIELD)
        {
            if (pTpe->data.field.msgProp.id == PROP_CEE ||
                pTpe->data.field.msgProp.id == PROP_LOCAL_VAR ||
                pTpe->data.field.msgProp.id == PROP_GLOBAL_VAR)
            {
                uchar* p;
                p = pTpe->fieldName;
                for (; *p; ++p)
                    *p = tolower(*p);
                p = pTpe->data.field.msgProp.name;
                for (; *p; ++p)
                    *p = tolower(*p);
            }
        }
    }
}
static void apply_case_sensitivity ( struct template * pTpl ) { if ( pTpl -> optCaseSensitive ) return ; struct templateEntry * pTpe ; for ( pTpe = pTpl -> pEntryRoot ; pTpe != NULL ; pTpe = pTpe -> pNext ) { if ( pTpe -> eEntryType == FIELD ) { if ( pTpe -> data . field . msgProp . id == PROP_CEE || pTpe -> data . field . msgProp . id == PROP_LOCAL_VAR || pTpe -> data . field . msgProp . id == PROP_GLOBAL_VAR ) { uchar * p ; p = pTpe -> fieldName ; for ( ; * p ; ++ p ) * p = tolower ( * p ) ; p = pTpe -> data . field . msgProp . name ; for ( ; * p ; ++ p ) * p = tolower ( * p ) ; } } } }
Helper function to apply case-sensitivity to templates.
Helper function to apply case - sensitivity to templates .