fix compilation errors

This commit is contained in:
Marty Kraimer
2001-08-13 13:11:09 +00:00
parent ce506a77a7
commit 9b117a376e

View File

@@ -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;
}
}
}