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 objDeserializeTrailer(strm_t* pStrm)
{
    DEFiRet;
    uchar c;

    /* check header cookie */
    NEXTC;
    if (c != COOKIE_ENDLINE)
        ABORT_FINALIZE(RS_RET_INVALID_TRAILER);
    NEXTC;
    if (c != 'E')
        ABORT_FINALIZE(RS_RET_INVALID_TRAILER);
    NEXTC;
    if (c != 'n')
        ABORT_FINALIZE(RS_RET_INVALID_TRAILER);
    NEXTC;
    if (c != 'd')
        ABORT_FINALIZE(RS_RET_INVALID_TRAILER);
    NEXTC;
    if (c != '\n')
        ABORT_FINALIZE(RS_RET_INVALID_TRAILER);
    NEXTC;
    if (c != COOKIE_BLANKLINE)
        ABORT_FINALIZE(RS_RET_INVALID_TRAILER);
    NEXTC;
    if (c != '\n')
        ABORT_FINALIZE(RS_RET_INVALID_TRAILER);

finalize_it:
    if (Debug && iRet != RS_RET_OK)
    {
        dbgprintf("objDeserializeTrailer fails with %d\n", iRet);
    }

    RETiRet;
}
/* de-serialize an object trailer. This does not get any data but checks if the
 * format is ok.
 * rgerhards, 2008-01-07
 */
de-serialize an object trailer. This does not get any data but checks if the
format is ok.
de - serialize an object trailer . This does not get any data but checks if the format is ok .
static rsRetVal objDeserializeTrailer(strm_t* pStrm)
{
    DEFiRet;
    uchar c;
    NEXTC;
    if (c != COOKIE_ENDLINE)
        ABORT_FINALIZE(RS_RET_INVALID_TRAILER);
    NEXTC;
    if (c != 'E')
        ABORT_FINALIZE(RS_RET_INVALID_TRAILER);
    NEXTC;
    if (c != 'n')
        ABORT_FINALIZE(RS_RET_INVALID_TRAILER);
    NEXTC;
    if (c != 'd')
        ABORT_FINALIZE(RS_RET_INVALID_TRAILER);
    NEXTC;
    if (c != '\n')
        ABORT_FINALIZE(RS_RET_INVALID_TRAILER);
    NEXTC;
    if (c != COOKIE_BLANKLINE)
        ABORT_FINALIZE(RS_RET_INVALID_TRAILER);
    NEXTC;
    if (c != '\n')
        ABORT_FINALIZE(RS_RET_INVALID_TRAILER);
finalize_it:
    if (Debug && iRet != RS_RET_OK)
    {
        dbgprintf("objDeserializeTrailer fails with %d\n", iRet);
    }
    RETiRet;
}
static rsRetVal objDeserializeTrailer ( strm_t * pStrm ) { DEFiRet ; uchar c ; NEXTC ; if ( c != COOKIE_ENDLINE ) ABORT_FINALIZE ( RS_RET_INVALID_TRAILER ) ; NEXTC ; if ( c != ' ' ) ABORT_FINALIZE ( RS_RET_INVALID_TRAILER ) ; NEXTC ; if ( c != ' ' ) ABORT_FINALIZE ( RS_RET_INVALID_TRAILER ) ; NEXTC ; if ( c != ' ' ) ABORT_FINALIZE ( RS_RET_INVALID_TRAILER ) ; NEXTC ; if ( c != ' \n ' ) ABORT_FINALIZE ( RS_RET_INVALID_TRAILER ) ; NEXTC ; if ( c != COOKIE_BLANKLINE ) ABORT_FINALIZE ( RS_RET_INVALID_TRAILER ) ; NEXTC ; if ( c != ' \n ' ) ABORT_FINALIZE ( RS_RET_INVALID_TRAILER ) ; finalize_it : if ( Debug && iRet != RS_RET_OK ) { dbgprintf ( " \n " , iRet ) ; } RETiRet ; }
de-serialize an object trailer.
de - serialize an object trailer .
/* check header cookie */