compare to INVALID_SOCKET not ERROR
This commit is contained in:
1 parent
6132a8762d
commit
a24415f0c9
1 file changed
+2
-2
@@ -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
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user