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/plugins/imtcp/imtcp.c
static rsRetVal createInstance(instanceConf_t** pinst)
{
    instanceConf_t* inst;
    DEFiRet;
    CHKmalloc(inst = malloc(sizeof(instanceConf_t)));
    inst->next = NULL;
    inst->pszBindRuleset = NULL;
    inst->pszInputName = NULL;
    inst->pszBindAddr = NULL;
    inst->dfltTZ = NULL;
    inst->bSuppOctetFram = -1; /* unset */
    inst->bSPFramingFix = 0;
    inst->ratelimitInterval = 0;
    inst->ratelimitBurst = 10000;
    inst->pszLstnPortFileName = NULL;

    /* node created, let's add to config */
    if (loadModConf->tail == NULL)
    {
        loadModConf->tail = loadModConf->root = inst;
    }
    else
    {
        loadModConf->tail->next = inst;
        loadModConf->tail = inst;
    }

    *pinst = inst;
finalize_it:
    RETiRet;
}
/* create input instance, set default parameters, and
 * add it to the list of instances.
 */
create input instance, set default parameters, and
add it to the list of instances.
create input instance set default parameters and add it to the list of instances .
static rsRetVal createInstance(instanceConf_t** pinst)
{
    instanceConf_t* inst;
    DEFiRet;
    CHKmalloc(inst = malloc(sizeof(instanceConf_t)));
    inst->next = NULL;
    inst->pszBindRuleset = NULL;
    inst->pszInputName = NULL;
    inst->pszBindAddr = NULL;
    inst->dfltTZ = NULL;
    inst->bSuppOctetFram = -1; 
    inst->bSPFramingFix = 0;
    inst->ratelimitInterval = 0;
    inst->ratelimitBurst = 10000;
    inst->pszLstnPortFileName = NULL;
    if (loadModConf->tail == NULL)
    {
        loadModConf->tail = loadModConf->root = inst;
    }
    else
    {
        loadModConf->tail->next = inst;
        loadModConf->tail = inst;
    }
    *pinst = inst;
finalize_it:
    RETiRet;
}
static rsRetVal createInstance ( instanceConf_t * * pinst ) { instanceConf_t * inst ; DEFiRet ; CHKmalloc ( inst = malloc ( sizeof ( instanceConf_t ) ) ) ; inst -> next = NULL ; inst -> pszBindRuleset = NULL ; inst -> pszInputName = NULL ; inst -> pszBindAddr = NULL ; inst -> dfltTZ = NULL ; inst -> bSuppOctetFram = -1 ; inst -> bSPFramingFix = 0 ; inst -> ratelimitInterval = 0 ; inst -> ratelimitBurst = 10000 ; inst -> pszLstnPortFileName = NULL ; if ( loadModConf -> tail == NULL ) { loadModConf -> tail = loadModConf -> root = inst ; } else { loadModConf -> tail -> next = inst ; loadModConf -> tail = inst ; } * pinst = inst ; finalize_it : RETiRet ; }
create input instance, set default parameters, and
 add it to the list of instances.
create input instance set default parameters and add it to the list of instances .
/* unset */ /* node created, let's add to config */