From 9cd2c61526213e0d20056bcc854bec01b3d2add0 Mon Sep 17 00:00:00 2001 From: Adam Mitz Date: Mon, 16 Mar 2015 09:30:19 -0500 Subject: Fixed coverity warning 1288509 --- ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp b/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp index 3bc7bd09d13..7453273a511 100644 --- a/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp +++ b/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp @@ -169,11 +169,11 @@ Client::handle_input (ACE_HANDLE handle) ACE_TEXT ("(%t) Client::handle_input handle = %d bytes_read = %d\n"), handle, bytes_read)); - if (bytes_read < 0 && errno == EWOULDBLOCK) + if (bytes_read == -1 && errno == EWOULDBLOCK) { return 0; } - else if (bytes_read == 0) + else if (bytes_read <= 0) { // Closed. return -1; -- cgit v1.2.1