From a24415f0c9f99308949606723aace75a7304fe8b Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 14 Dec 1999 21:13:49 +0000 Subject: [PATCH] compare to INVALID_SOCKET not ERROR --- src/libCom/logClient/logClient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libCom/logClient/logClient.c b/src/libCom/logClient/logClient.c index dd84d8b35..01e63e1da 100644 --- a/src/libCom/logClient/logClient.c +++ b/src/libCom/logClient/logClient.c @@ -155,7 +155,7 @@ void logClientReset (logClient *pClient) pClient->sock = INVALID_SOCKET; pClient->file = NULL; } - else if (pClient->sock!=ERROR) { + else if (pClient->sock!=INVALID_SOCKET) { # ifdef vxWorks logFdDelete(pClient->sock); # endif @@ -701,7 +701,7 @@ LOCAL void logClientRollLocalPort (void) */ @@@ status = iocLogAttach(); - if (status==OK) { + if (!status) { /* * only print a message after the first connect */