Remove excessive parentheses
There are many more.
This commit is contained in:
@@ -504,12 +504,12 @@ string Connection::recv_one( int sock_to_recv, bool nonblocking )
|
||||
|
||||
struct cmsghdr *ecn_hdr = CMSG_FIRSTHDR( &header );
|
||||
if ( ecn_hdr
|
||||
&& (ecn_hdr->cmsg_level == IPPROTO_IP)
|
||||
&& ((ecn_hdr->cmsg_type == IP_TOS)
|
||||
&& ecn_hdr->cmsg_level == IPPROTO_IP
|
||||
&& ( ecn_hdr->cmsg_type == IP_TOS
|
||||
#ifdef IP_RECVTOS
|
||||
|| (ecn_hdr->cmsg_type == IP_RECVTOS)
|
||||
|| ecn_hdr->cmsg_type == IP_RECVTOS
|
||||
#endif
|
||||
)) {
|
||||
) ) {
|
||||
/* got one */
|
||||
uint8_t *ecn_octet_p = (uint8_t *)CMSG_DATA( ecn_hdr );
|
||||
assert( ecn_octet_p );
|
||||
|
||||
@@ -124,7 +124,7 @@ bool FragmentAssembly::add_fragment( Fragment &frag )
|
||||
}
|
||||
|
||||
/* see if we're done */
|
||||
return ( fragments_arrived == fragments_total );
|
||||
return fragments_arrived == fragments_total;
|
||||
}
|
||||
|
||||
Instruction FragmentAssembly::get_assembly( void )
|
||||
|
||||
Reference in New Issue
Block a user