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/stream.c
static rsRetVal strmSetWCntr(strm_t* pThis, number_t* pWCnt)
{
    DEFiRet;

    ISOBJ_TYPE_assert(pThis, strm);

    if (pWCnt != NULL)
        *pWCnt = 0;
    pThis->pUsrWCntr = pWCnt;

    RETiRet;
}
/* set a user write-counter. This counter is initialized to zero and
 * receives the number of bytes written. It is accurate only after a
 * flush(). This hook is provided as a means to control disk size usage.
 * The pointer must be valid at all times (so if it is on the stack, be sure
 * to remove it when you exit the function). Pointers are removed by
 * calling strmSetWCntr() with a NULL param. Only one pointer is settable,
 * any new set overwrites the previous one.
 * rgerhards, 2008-02-27
 */
set a user write-counter. This counter is initialized to zero and
receives the number of bytes written. It is accurate only after a
flush(). This hook is provided as a means to control disk size usage.
The pointer must be valid at all times (so if it is on the stack, be sure
to remove it when you exit the function). Pointers are removed by
calling strmSetWCntr() with a NULL param. Only one pointer is settable,
any new set overwrites the previous one.
set a user write - counter . This counter is initialized to zero and receives the number of bytes written . It is accurate only after a flush () . This hook is provided as a means to control disk size usage . The pointer must be valid at all times ( so if it is on the stack be sure to remove it when you exit the function ) . Pointers are removed by calling strmSetWCntr () with a NULL param . Only one pointer is settable any new set overwrites the previous one .
static rsRetVal strmSetWCntr(strm_t* pThis, number_t* pWCnt)
{
    DEFiRet;
    ISOBJ_TYPE_assert(pThis, strm);
    if (pWCnt != NULL)
        *pWCnt = 0;
    pThis->pUsrWCntr = pWCnt;
    RETiRet;
}
static rsRetVal strmSetWCntr ( strm_t * pThis , number_t * pWCnt ) { DEFiRet ; ISOBJ_TYPE_assert ( pThis , strm ) ; if ( pWCnt != NULL ) * pWCnt = 0 ; pThis -> pUsrWCntr = pWCnt ; RETiRet ; }
set a user write-counter.
set a user write - counter .