This commit is contained in:
Jeff Hill
2000-06-08 16:26:22 +00:00
parent d53c56763b
commit e37dd309fc
2 changed files with 7 additions and 8 deletions
+4 -5
View File
@@ -1196,7 +1196,7 @@ int tcpiiu::post_msg (char *pInBuf, unsigned long blockSize)
{
unsigned long size;
while (blockSize) {
while ( blockSize ) {
/*
* fetch a complete message header
@@ -1208,10 +1208,10 @@ int tcpiiu::post_msg (char *pInBuf, unsigned long blockSize)
size = min (size, blockSize);
pHdr = (char *) &this->curMsg;
memcpy( pHdr + this->curMsgBytes, pInBuf, size);
memcpy ( pHdr + this->curMsgBytes, pInBuf, size);
this->curMsgBytes += size;
if (this->curMsgBytes < sizeof(this->curMsg)) {
if ( this->curMsgBytes < sizeof (this->curMsg) ) {
#if 0
printf ("waiting for %d msg hdr bytes\n",
sizeof(this->curMsg) - this->curMsgBytes);
@@ -1225,8 +1225,7 @@ int tcpiiu::post_msg (char *pInBuf, unsigned long blockSize)
/*
* fix endian of bytes
*/
this->curMsg.m_postsize =
ntohs (this->curMsg.m_postsize);
this->curMsg.m_postsize = ntohs (this->curMsg.m_postsize);
this->curMsg.m_cmmd = ntohs (this->curMsg.m_cmmd);
this->curMsg.m_dataType = ntohs (this->curMsg.m_dataType);
this->curMsg.m_count = ntohs (this->curMsg.m_count);