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/obj.c
static rsRetVal UnregisterObj(uchar* pszObjName)
{
    DEFiRet;
    int bFound;
    int i;

    assert(pszObjName != NULL);

    bFound = 0;
    i = 0;
    while (!bFound && i < OBJ_NUM_IDS)
    {
        if (arrObjInfo[i] != NULL && !ustrcmp(arrObjInfo[i]->pszID, pszObjName))
        {
            bFound = 1;
            break;
        }
        ++i;
    }

    if (!bFound)
        ABORT_FINALIZE(RS_RET_OBJ_NOT_REGISTERED);

    InfoDestruct(&arrObjInfo[i]);
    /* DEV debug only: dbgprintf("object '%s' successfully unregistered with
     * index %d\n", pszObjName, i); */

finalize_it:
    if (iRet != RS_RET_OK)
    {
        dbgprintf("unregistering object '%s' failed with error code %d\n",
                  pszObjName, iRet);
    }

    RETiRet;
}
/* deregister a classes' info pointer, usually called because the class is
 * unloaded. After deregistration, the class can no longer be accessed, except
 * if it is reloaded. rgerhards, 2008-03-10
 */
deregister a classes' info pointer, usually called because the class is
unloaded. After deregistration, the class can no longer be accessed, except
if it is reloaded.
deregister a classes ' info pointer usually called because the class is unloaded . After deregistration the class can no longer be accessed except if it is reloaded .
static rsRetVal UnregisterObj(uchar* pszObjName)
{
    DEFiRet;
    int bFound;
    int i;
    assert(pszObjName != NULL);
    bFound = 0;
    i = 0;
    while (!bFound && i < OBJ_NUM_IDS)
    {
        if (arrObjInfo[i] != NULL && !ustrcmp(arrObjInfo[i]->pszID, pszObjName))
        {
            bFound = 1;
            break;
        }
        ++i;
    }
    if (!bFound)
        ABORT_FINALIZE(RS_RET_OBJ_NOT_REGISTERED);
    InfoDestruct(&arrObjInfo[i]);
finalize_it:
    if (iRet != RS_RET_OK)
    {
        dbgprintf("unregistering object '%s' failed with error code %d\n",
                  pszObjName, iRet);
    }
    RETiRet;
}
static rsRetVal UnregisterObj ( uchar * pszObjName ) { DEFiRet ; int bFound ; int i ; assert ( pszObjName != NULL ) ; bFound = 0 ; i = 0 ; while ( ! bFound && i < OBJ_NUM_IDS ) { if ( arrObjInfo [ i ] != NULL && ! ustrcmp ( arrObjInfo [ i ] -> pszID , pszObjName ) ) { bFound = 1 ; break ; } ++ i ; } if ( ! bFound ) ABORT_FINALIZE ( RS_RET_OBJ_NOT_REGISTERED ) ; InfoDestruct ( & arrObjInfo [ i ] ) ; finalize_it : if ( iRet != RS_RET_OK ) { dbgprintf ( " \n " , pszObjName , iRet ) ; } RETiRet ; }
deregister a classes' info pointer, usually called because the class is
 unloaded.
deregister a classes ' info pointer usually called because the class is unloaded .
/* DEV debug only: dbgprintf("object '%s' successfully unregistered with
     * index %d\n", pszObjName, i); */