fixed gnu warning

This commit is contained in:
Jeff Hill
2006-12-01 00:19:31 +00:00
parent e553c3ec56
commit ce17ed5ae2
2 changed files with 8 additions and 5 deletions
+5 -3
View File
@@ -464,9 +464,11 @@ static void register_new_client ( osiSockAddr & from,
client_list.remove ( *pNewClient );
pNewClient->~repeaterClient ();
freeList.release ( pNewClient );
epicsUInt16 port = ntohs ( from.ia.sin_port );
debugPrintf ( ( "Deleted repeater client=%u (error while sending ack)\n",
port ) );
# ifdef DEBUG
epicsUInt16 port = ntohs ( from.ia.sin_port );
debugPrintf ( ( "Deleted repeater client=%u (error while sending ack)\n",
port ) );
# endif
}
/*
+3 -2
View File
@@ -204,9 +204,10 @@ void outBuf::commitMsg ( ca_uint32_t reducedPayloadSize )
payloadSizeExtended = reducedPayloadSize;
}
else {
AlignedWireRef < epicsUInt16 > payloadSize ( mp->m_postsize );
AlignedWireRef < epicsUInt16 > payloadSizeOnWire ( mp->m_postsize );
ca_uint32_t payloadSize = payloadSizeOnWire;
assert ( reducedPayloadSize <= payloadSize );
payloadSize = static_cast < ca_uint16_t > ( reducedPayloadSize );
payloadSizeOnWire = static_cast < ca_uint16_t > ( reducedPayloadSize );
}
this->commitMsg ();
}