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/conf.c
static rsRetVal doModLoad(uchar** pp, __attribute__((unused)) void* pVal)
{
    DEFiRet;
    uchar szName[512];
    uchar* pModName;

    assert(pp != NULL);
    assert(*pp != NULL);

    skipWhiteSpace(pp); /* skip over any whitespace */
    if (getSubString(pp, (char*)szName, sizeof(szName), ' ') != 0)
    {
        LogError(0, RS_RET_NOT_FOUND, "could not extract module name");
        ABORT_FINALIZE(RS_RET_NOT_FOUND);
    }
    skipWhiteSpace(pp); /* skip over any whitespace */

    /* this below is a quick and dirty hack to provide compatibility with the
     * $ModLoad MySQL forward compatibility statement. This needs to be
     * supported for legacy format.
     */
    if (!strcmp((char*)szName, "MySQL"))
        pModName = (uchar*)"ommysql.so";
    else
        pModName = szName;

    CHKiRet(module.Load(pModName, 1, NULL));

finalize_it:
    RETiRet;
}
/* process a $ModLoad config line.  */
process a $ModLoad config line.
process a $ModLoad config line .
static rsRetVal doModLoad(uchar** pp, __attribute__((unused)) void* pVal)
{
    DEFiRet;
    uchar szName[512];
    uchar* pModName;
    assert(pp != NULL);
    assert(*pp != NULL);
    skipWhiteSpace(pp); 
    if (getSubString(pp, (char*)szName, sizeof(szName), ' ') != 0)
    {
        LogError(0, RS_RET_NOT_FOUND, "could not extract module name");
        ABORT_FINALIZE(RS_RET_NOT_FOUND);
    }
    skipWhiteSpace(pp); 
    if (!strcmp((char*)szName, "MySQL"))
        pModName = (uchar*)"ommysql.so";
    else
        pModName = szName;
    CHKiRet(module.Load(pModName, 1, NULL));
finalize_it:
    RETiRet;
}
static rsRetVal doModLoad ( uchar * * pp , __attribute__ ( ( unused ) ) void * pVal ) { DEFiRet ; uchar szName [ 512 ] ; uchar * pModName ; assert ( pp != NULL ) ; assert ( * pp != NULL ) ; skipWhiteSpace ( pp ) ; if ( getSubString ( pp , ( char * ) szName , sizeof ( szName ) , ' ' ) != 0 ) { LogError ( 0 , RS_RET_NOT_FOUND , " " ) ; ABORT_FINALIZE ( RS_RET_NOT_FOUND ) ; } skipWhiteSpace ( pp ) ; if ( ! strcmp ( ( char * ) szName , " " ) ) pModName = ( uchar * ) " " ; else pModName = szName ; CHKiRet ( module . Load ( pModName , 1 , NULL ) ) ; finalize_it : RETiRet ; }
process a $ModLoad config line.
process a $ModLoad config line .
/* skip over any whitespace */ /* skip over any whitespace */ /* this below is a quick and dirty hack to provide compatibility with the
     * $ModLoad MySQL forward compatibility statement. This needs to be
     * supported for legacy format.
     */