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/tcpsrv.c
static int TCPSessTblFindFreeSpot(tcpsrv_t* pThis)
{
    register int i;

    ISOBJ_TYPE_assert(pThis, tcpsrv);

    for (i = 0; i < pThis->iSessMax; ++i)
    {
        if (pThis->pSessions[i] == NULL)
            break;
    }

    return ((i < pThis->iSessMax) ? i : -1);
}
/* find a free spot in the session table. If the table
 * is full, -1 is returned, else the index of the free
 * entry (0 or higher).
 */
find a free spot in the session table. If the table
is full, -1 is returned, else the index of the free
entry (0 or higher).
find a free spot in the session table . If the table is full - 1 is returned else the index of the free entry ( 0 or higher ) .
static int TCPSessTblFindFreeSpot(tcpsrv_t* pThis)
{
    register int i;
    ISOBJ_TYPE_assert(pThis, tcpsrv);
    for (i = 0; i < pThis->iSessMax; ++i)
    {
        if (pThis->pSessions[i] == NULL)
            break;
    }
    return ((i < pThis->iSessMax) ? i : -1);
}
static int TCPSessTblFindFreeSpot ( tcpsrv_t * pThis ) { register int i ; ISOBJ_TYPE_assert ( pThis , tcpsrv ) ; for ( i = 0 ; i < pThis -> iSessMax ; ++ i ) { if ( pThis -> pSessions [ i ] == NULL ) break ; } return ( ( i < pThis -> iSessMax ) ? i : -1 ) ; }
find a free spot in the session table.
find a free spot in the session table .