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/net.c
static rsRetVal HasRestrictions(uchar* pszType, int* bHasRestrictions)
{
    struct AllowedSenders* pAllowRoot = NULL;
    DEFiRet;

    CHKiRet(setAllowRoot(&pAllowRoot, pszType));

    *bHasRestrictions = (pAllowRoot == NULL) ? 0 : 1;

finalize_it:
    if (iRet != RS_RET_OK)
    {
        *bHasRestrictions =
            1; /* in this case it is better to check individually */
        DBGPRINTF("Error %d trying to obtain ACL restriction state of '%s'\n",
                  iRet, pszType);
    }
    RETiRet;
}
/* check if restrictions (ALCs) exists. The goal of this function is to disable
 * the somewhat time-consuming ACL checks if no restrictions are defined (the
 * usual case). This also permits to gain some speedup by using firewall-based
 * ACLs instead of rsyslog ACLs (the recommended method. rgerhards, 2009-11-16
 */
check if restrictions (ALCs) exists. The goal of this function is to disable
the somewhat time-consuming ACL checks if no restrictions are defined (the
usual case). This also permits to gain some speedup by using firewall-based
ACLs instead of rsyslog ACLs (the recommended method.
check if restrictions ( ALCs ) exists . The goal of this function is to disable the somewhat time - consuming ACL checks if no restrictions are defined ( the usual case ) . This also permits to gain some speedup by using firewall - based ACLs instead of rsyslog ACLs ( the recommended method .
static rsRetVal HasRestrictions(uchar* pszType, int* bHasRestrictions)
{
    struct AllowedSenders* pAllowRoot = NULL;
    DEFiRet;
    CHKiRet(setAllowRoot(&pAllowRoot, pszType));
    *bHasRestrictions = (pAllowRoot == NULL) ? 0 : 1;
finalize_it:
    if (iRet != RS_RET_OK)
    {
        *bHasRestrictions =
            1; 
        DBGPRINTF("Error %d trying to obtain ACL restriction state of '%s'\n",
                  iRet, pszType);
    }
    RETiRet;
}
static rsRetVal HasRestrictions ( uchar * pszType , int * bHasRestrictions ) { struct AllowedSenders * pAllowRoot = NULL ; DEFiRet ; CHKiRet ( setAllowRoot ( & pAllowRoot , pszType ) ) ; * bHasRestrictions = ( pAllowRoot == NULL ) ? 0 : 1 ; finalize_it : if ( iRet != RS_RET_OK ) { * bHasRestrictions = 1 ; DBGPRINTF ( " \n " , iRet , pszType ) ; } RETiRet ; }
check if restrictions (ALCs) exists.
check if restrictions ( ALCs ) exists .
/* in this case it is better to check individually */