cinvert errno to string prior to hgenerating a new errno

This commit is contained in:
Jeff Hill
2003-05-13 21:03:11 +00:00
parent 45cde80ee8
commit 2498b21fae

View File

@@ -99,10 +99,10 @@ casIntfIO::casIntfIO ( const caNetAddr & addrIn ) :
sizeof(this->addr) );
}
if (status<0) {
char buf[64];
ipAddrToA (&this->addr, buf, sizeof(buf));
char sockErrBuf[64];
epicsSocketConvertErrnoToString ( sockErrBuf, sizeof ( sockErrBuf ) );
char buf[64];
ipAddrToA (&this->addr, buf, sizeof(buf));
errPrintf ( S_cas_bindFail,
__FILE__, __LINE__,
"- bind TCP IP addr=%s failed because %s",