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/tools/rsyslogd.c
static rsRetVal bufOptRemove(int* opt, char** arg)
{
    DEFiRet;
    bufOpt_t* pBuf;

    if (bufOptRoot == NULL)
        ABORT_FINALIZE(RS_RET_END_OF_LINKEDLIST);
    pBuf = bufOptRoot;

    *opt = pBuf->optchar;
    *arg = pBuf->arg;

    bufOptRoot = pBuf->pNext;
    free(pBuf);

finalize_it:
    RETiRet;
}
/* remove option buffer from top of list, return values and destruct buffer
 * itself. returns RS_RET_END_OF_LINKEDLIST when no more options are present.
 * (we use int *opt instead of char *opt to keep consistent with getopt())
 */
remove option buffer from top of list, return values and destruct buffer
itself. returns RS_RET_END_OF_LINKEDLIST when no more options are present.
(we use int *opt instead of char *opt to keep consistent with getopt())
remove option buffer from top of list return values and destruct buffer itself . returns RS_RET_END_OF_LINKEDLIST when no more options are present . ( we use int * opt instead of char * opt to keep consistent with getopt () )
static rsRetVal bufOptRemove(int* opt, char** arg)
{
    DEFiRet;
    bufOpt_t* pBuf;
    if (bufOptRoot == NULL)
        ABORT_FINALIZE(RS_RET_END_OF_LINKEDLIST);
    pBuf = bufOptRoot;
    *opt = pBuf->optchar;
    *arg = pBuf->arg;
    bufOptRoot = pBuf->pNext;
    free(pBuf);
finalize_it:
    RETiRet;
}
static rsRetVal bufOptRemove ( int * opt , char * * arg ) { DEFiRet ; bufOpt_t * pBuf ; if ( bufOptRoot == NULL ) ABORT_FINALIZE ( RS_RET_END_OF_LINKEDLIST ) ; pBuf = bufOptRoot ; * opt = pBuf -> optchar ; * arg = pBuf -> arg ; bufOptRoot = pBuf -> pNext ; free ( pBuf ) ; finalize_it : RETiRet ; }
remove option buffer from top of list, return values and destruct buffer
 itself.
remove option buffer from top of list return values and destruct buffer itself .