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 msgConstruct(smsg_t** ppThis)
{
    DEFiRet;

    CHKiRet(msgBaseConstruct(ppThis));
    /* we initialize both timestamps to contain the current time, so that they
     * are consistent. Also, this saves us from doing any further time calls
     * just to obtain a timestamp. The memcpy() should not really make a
     * difference, especially as I think there is no codepath currently where it
     * would not be required (after I have cleaned up the pathes ;)). --
     * rgerhards, 2008-10-02
     */
    datetime.getCurrTime(&((*ppThis)->tRcvdAt), &((*ppThis)->ttGenTime),
                         TIME_IN_LOCALTIME);
    memcpy(&(*ppThis)->tTIMESTAMP, &(*ppThis)->tRcvdAt,
           sizeof(struct syslogTime));

finalize_it:
    RETiRet;
}
/* "Constructor" for a msg "object". Returns a pointer to
 * the new object or NULL if no such object could be allocated.
 * An object constructed via this function should only be destroyed
 * via "msgDestruct()". This constructor, for historical reasons,
 * also sets the two timestamps to the current time.
 */
"Constructor" for a msg "object". Returns a pointer to
the new object or NULL if no such object could be allocated.
An object constructed via this function should only be destroyed
via "msgDestruct()". This constructor, for historical reasons,
also sets the two timestamps to the current time.
" Constructor " for a msg " object " . Returns a pointer to the new object or NULL if no such object could be allocated . An object constructed via this function should only be destroyed via " msgDestruct () " . This constructor for historical reasons also sets the two timestamps to the current time .
rsRetVal msgConstruct(smsg_t** ppThis)
{
    DEFiRet;
    CHKiRet(msgBaseConstruct(ppThis));
    datetime.getCurrTime(&((*ppThis)->tRcvdAt), &((*ppThis)->ttGenTime),
                         TIME_IN_LOCALTIME);
    memcpy(&(*ppThis)->tTIMESTAMP, &(*ppThis)->tRcvdAt,
           sizeof(struct syslogTime));
finalize_it:
    RETiRet;
}
rsRetVal msgConstruct ( smsg_t * * ppThis ) { DEFiRet ; CHKiRet ( msgBaseConstruct ( ppThis ) ) ; datetime . getCurrTime ( & ( ( * ppThis ) -> tRcvdAt ) , & ( ( * ppThis ) -> ttGenTime ) , TIME_IN_LOCALTIME ) ; memcpy ( & ( * ppThis ) -> tTIMESTAMP , & ( * ppThis ) -> tRcvdAt , sizeof ( struct syslogTime ) ) ; finalize_it : RETiRet ; }
"Constructor" for a msg "object".
" Constructor " for a msg " object " .
/* we initialize both timestamps to contain the current time, so that they
     * are consistent. Also, this saves us from doing any further time calls
     * just to obtain a timestamp. The memcpy() should not really make a
     * difference, especially as I think there is no codepath currently where it
     * would not be required (after I have cleaned up the pathes ;)). --
     * rgerhards, 2008-10-02
     */