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/rsconf.c
static rsRetVal tellModulesCheckConfig(void)
{
    cfgmodules_etry_t* node;
    rsRetVal localRet;

    DBGPRINTF("telling modules to check config %p\n", loadConf);
    node = module.GetNxtCnfType(loadConf, NULL, eMOD_ANY);
    while (node != NULL)
    {
        if (node->pMod->beginCnfLoad != NULL)
        {
            localRet = node->pMod->checkCnf(node->modCnf);
            DBGPRINTF("module %s tells us config can %sbe activated\n",
                      node->pMod->pszName,
                      (localRet == RS_RET_OK) ? "" : "NOT ");
            if (localRet == RS_RET_OK)
            {
                node->canActivate = 1;
            }
            else
            {
                node->canActivate = 0;
            }
        }
        node = module.GetNxtCnfType(runConf, node, eMOD_ANY);
    }

    return RS_RET_OK; /* intentional: we do not care about module errors */
}
/* Tell input modules to verify config object */
Tell input modules to verify config object
Tell input modules to verify config object
static rsRetVal tellModulesCheckConfig(void)
{
    cfgmodules_etry_t* node;
    rsRetVal localRet;
    DBGPRINTF("telling modules to check config %p\n", loadConf);
    node = module.GetNxtCnfType(loadConf, NULL, eMOD_ANY);
    while (node != NULL)
    {
        if (node->pMod->beginCnfLoad != NULL)
        {
            localRet = node->pMod->checkCnf(node->modCnf);
            DBGPRINTF("module %s tells us config can %sbe activated\n",
                      node->pMod->pszName,
                      (localRet == RS_RET_OK) ? "" : "NOT ");
            if (localRet == RS_RET_OK)
            {
                node->canActivate = 1;
            }
            else
            {
                node->canActivate = 0;
            }
        }
        node = module.GetNxtCnfType(runConf, node, eMOD_ANY);
    }
    return RS_RET_OK; 
}
static rsRetVal tellModulesCheckConfig ( void ) { cfgmodules_etry_t * node ; rsRetVal localRet ; DBGPRINTF ( " \n " , loadConf ) ; node = module . GetNxtCnfType ( loadConf , NULL , eMOD_ANY ) ; while ( node != NULL ) { if ( node -> pMod -> beginCnfLoad != NULL ) { localRet = node -> pMod -> checkCnf ( node -> modCnf ) ; DBGPRINTF ( " \n " , node -> pMod -> pszName , ( localRet == RS_RET_OK ) ? " " : " " ) ; if ( localRet == RS_RET_OK ) { node -> canActivate = 1 ; } else { node -> canActivate = 0 ; } } node = module . GetNxtCnfType ( runConf , node , eMOD_ANY ) ; } return RS_RET_OK ; }
Tell input modules to verify config object
Tell input modules to verify config object
/* intentional: we do not care about module errors */