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/strgen.c
static rsRetVal FindStrgen(strgen_t** ppStrgen, uchar* pName)
{
    strgenList_t* pThis;
    DEFiRet;

    for (pThis = pStrgenLstRoot; pThis != NULL; pThis = pThis->pNext)
    {
        if (ustrcmp(pThis->pStrgen->pName, pName) == 0)
        {
            *ppStrgen = pThis->pStrgen;
            FINALIZE; /* found it, iRet still eq. OK! */
        }
    }

    iRet = RS_RET_PARSER_NOT_FOUND;

finalize_it:
    RETiRet;
}
/* find a strgen based on the provided name */
find a strgen based on the provided name
find a strgen based on the provided name
static rsRetVal FindStrgen(strgen_t** ppStrgen, uchar* pName)
{
    strgenList_t* pThis;
    DEFiRet;
    for (pThis = pStrgenLstRoot; pThis != NULL; pThis = pThis->pNext)
    {
        if (ustrcmp(pThis->pStrgen->pName, pName) == 0)
        {
            *ppStrgen = pThis->pStrgen;
            FINALIZE; 
        }
    }
    iRet = RS_RET_PARSER_NOT_FOUND;
finalize_it:
    RETiRet;
}
static rsRetVal FindStrgen ( strgen_t * * ppStrgen , uchar * pName ) { strgenList_t * pThis ; DEFiRet ; for ( pThis = pStrgenLstRoot ; pThis != NULL ; pThis = pThis -> pNext ) { if ( ustrcmp ( pThis -> pStrgen -> pName , pName ) == 0 ) { * ppStrgen = pThis -> pStrgen ; FINALIZE ; } } iRet = RS_RET_PARSER_NOT_FOUND ; finalize_it : RETiRet ; }
find a strgen based on the provided name
find a strgen based on the provided name
/* found it, iRet still eq. OK! */