fixed sun pro warnings

This commit is contained in:
Jeff Hill
2001-05-23 01:23:23 +00:00
parent 4a5067b8a6
commit 6fbf031e75
8 changed files with 20 additions and 21 deletions

View File

@@ -88,18 +88,18 @@ unsigned comQueRecv::removeBytes ( unsigned nBytes )
if ( ! pComBuf ) {
return totalBytes;
}
unsigned nBytes = pComBuf->removeBytes ( bytesLeft );
unsigned nBytesThisTime = pComBuf->removeBytes ( bytesLeft );
if ( pComBuf->occupiedBytes () == 0u ) {
this->bufs.remove ( *pComBuf );
pComBuf->destroy ();
}
if ( nBytes == 0u) {
return totalBytes;
if ( nBytesThisTime == 0u) {
break;
}
totalBytes += nBytes;
totalBytes += nBytesThisTime;
bytesLeft = nBytes - totalBytes;
}
return nBytes;
return totalBytes;
}
void comQueRecv::pushLastComBufReceived ( comBuf & bufIn )