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/msg.c
rsRetVal MsgSetMSGID(smsg_t* const pMsg, const char* pszMSGID)
    {
        DEFiRet;
        ISOBJ_TYPE_assert(pMsg, msg);
        if (pMsg->pCSMSGID == NULL)
        {
            /* we need to obtain the object first */
            CHKiRet(rsCStrConstruct(&pMsg->pCSMSGID));
        }
        /* if we reach this point, we have the object */
        CHKiRet(rsCStrSetSzStr(pMsg->pCSMSGID, (uchar*)pszMSGID));
        cstrFinalize(pMsg->pCSMSGID);

    finalize_it:
        RETiRet;
    }
/* rgerhards 2004-11-24: set MSGID in msg object
     */
rgerhards 2004-11-24: set MSGID in msg object
rgerhards 2004 - 11 - 24 : set MSGID in msg object
rsRetVal MsgSetMSGID(smsg_t* const pMsg, const char* pszMSGID)
    {
        DEFiRet;
        ISOBJ_TYPE_assert(pMsg, msg);
        if (pMsg->pCSMSGID == NULL)
        {
            CHKiRet(rsCStrConstruct(&pMsg->pCSMSGID));
        }
        CHKiRet(rsCStrSetSzStr(pMsg->pCSMSGID, (uchar*)pszMSGID));
        cstrFinalize(pMsg->pCSMSGID);
    finalize_it:
        RETiRet;
    }
rsRetVal MsgSetMSGID ( smsg_t * const pMsg , const char * pszMSGID ) { DEFiRet ; ISOBJ_TYPE_assert ( pMsg , msg ) ; if ( pMsg -> pCSMSGID == NULL ) { CHKiRet ( rsCStrConstruct ( & pMsg -> pCSMSGID ) ) ; } CHKiRet ( rsCStrSetSzStr ( pMsg -> pCSMSGID , ( uchar * ) pszMSGID ) ) ; cstrFinalize ( pMsg -> pCSMSGID ) ; finalize_it : RETiRet ; }
rgerhards 2004-11-24: set MSGID in msg object
rgerhards 2004 - 11 - 24 : set MSGID in msg object
/* we need to obtain the object first */ /* if we reach this point, we have the object */