compare to INVALID_SOCKET not ERROR

This commit is contained in:
Jeff Hill committed 1999-12-14 21:13:49 +00:00
1 parent 6132a8762d
commit a24415f0c9
1 file changed
+2 -2
+2 -2
View File
@@ -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
*/