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/runtime/modules.c
static modInfo_t* FindWithCnfName(rsconf_t* cnf, uchar* name,
                                  eModType_t rqtdType)
{
    cfgmodules_etry_t* node;

    ;
    for (node = cnf->modules.root; node != NULL; node = node->next)
    {
        if (node->pMod->eType != rqtdType || node->pMod->cnfName == NULL)
            continue;
        if (!strcasecmp((char*)node->pMod->cnfName, (char*)name))
            break;
    }

    return node == NULL ? NULL : node->pMod;
}
/* Find a module with the given conf name and type. Returns NULL if none
 * can be found, otherwise module found.
 */
Find a module with the given conf name and type. Returns NULL if none
can be found, otherwise module found.
Find a module with the given conf name and type . Returns NULL if none can be found otherwise module found .
static modInfo_t* FindWithCnfName(rsconf_t* cnf, uchar* name,
                                  eModType_t rqtdType)
{
    cfgmodules_etry_t* node;
    ;
    for (node = cnf->modules.root; node != NULL; node = node->next)
    {
        if (node->pMod->eType != rqtdType || node->pMod->cnfName == NULL)
            continue;
        if (!strcasecmp((char*)node->pMod->cnfName, (char*)name))
            break;
    }
    return node == NULL ? NULL : node->pMod;
}
static modInfo_t * FindWithCnfName ( rsconf_t * cnf , uchar * name , eModType_t rqtdType ) { cfgmodules_etry_t * node ; ; for ( node = cnf -> modules . root ; node != NULL ; node = node -> next ) { if ( node -> pMod -> eType != rqtdType || node -> pMod -> cnfName == NULL ) continue ; if ( ! strcasecmp ( ( char * ) node -> pMod -> cnfName , ( char * ) name ) ) break ; } return node == NULL ? NULL : node -> pMod ; }
Find a module with the given conf name and type.
Find a module with the given conf name and type .