VCL: Fix converity warning CID 177864
Change-Id: Id8578321381d14f9de827767ef0acf627f1535e4 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
This commit is contained in:
@ -572,8 +572,8 @@ main (int argc, char **argv)
|
|||||||
#ifdef VCL_TEST
|
#ifdef VCL_TEST
|
||||||
num_ev = vppcom_epoll_wait (ssm->epfd, ssm->wait_events,
|
num_ev = vppcom_epoll_wait (ssm->epfd, ssm->wait_events,
|
||||||
SOCK_SERVER_MAX_EPOLL_EVENTS, 60.0);
|
SOCK_SERVER_MAX_EPOLL_EVENTS, 60.0);
|
||||||
if (rv < 0)
|
if (num_ev < 0)
|
||||||
errno = -rv;
|
errno = -num_ev;
|
||||||
#else
|
#else
|
||||||
num_ev = epoll_wait (ssm->epfd, ssm->wait_events,
|
num_ev = epoll_wait (ssm->epfd, ssm->wait_events,
|
||||||
SOCK_SERVER_MAX_EPOLL_EVENTS, 60000);
|
SOCK_SERVER_MAX_EPOLL_EVENTS, 60000);
|
||||||
|
Reference in New Issue
Block a user