fix compilation errors
This commit is contained in:
@@ -93,11 +93,13 @@ epicsShareFunc int epicsShareAPI hostToIPAddr
|
||||
*/
|
||||
epicsShareFunc enum osiSockShutdownReturn epicsShareAPI osiSocketShutdown ( SOCKET sock )
|
||||
{
|
||||
status = shutdown ( this->sock, SD_BOTH );
|
||||
int status;
|
||||
|
||||
status = shutdown ( sock, SD_BOTH );
|
||||
if ( status ) {
|
||||
errlogPrintf ( "TCP socket shutdown error (for shutdown purposes) was %s\n",
|
||||
SOCKERRSTR (SOCKERRNO) );
|
||||
status = socket_close ( this->sock );
|
||||
status = socket_close ( sock );
|
||||
if ( status ) {
|
||||
errlogPrintf ("TCP socket close error (for shutdown purposes) was %s\n",
|
||||
SOCKERRSTR (SOCKERRNO) );
|
||||
@@ -110,4 +112,4 @@ epicsShareFunc enum osiSockShutdownReturn epicsShareAPI osiSocketShutdown ( SOCK
|
||||
else {
|
||||
return ossrSocketShutdown;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user