use INVALID_SOCKET to test socket() return

This commit is contained in:
Jeff Hill
2000-05-31 22:12:34 +00:00
parent 937bbc7dca
commit 86c604e53f
+1 -1
View File
@@ -147,7 +147,7 @@ int cast_server(void)
* Use ARPA Internet address format and datagram socket.
*/
if ((IOC_cast_sock = socket (AF_INET, SOCK_DGRAM, 0)) < 0) {
if ( ( IOC_cast_sock = socket (AF_INET, SOCK_DGRAM, 0) ) == INVALID_SOCKET ) {
epicsPrintf ("CAS: cast socket creation error\n");
threadSuspendSelf ();
}