Remove excessive parentheses

There are many more.
This commit is contained in:
John Hood
2016-11-07 00:56:02 -05:00
parent 1ae23b4dcc
commit 3346419724
8 changed files with 23 additions and 18 deletions
+4 -4
View File
@@ -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 );
+1 -1
View File
@@ -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 )