Added parenthesis to provide clarity and make it obvious to anyone maintaining the code.

This commit is contained in:
skarg
2012-09-27 19:26:11 +00:00
parent d09657474c
commit c28f55d3df
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -166,9 +166,9 @@ int bip_send_pdu(
mtu[0] = BVLL_TYPE_BACNET_IP;
bip_dest.sin_family = AF_INET;
if (dest->net == BACNET_BROADCAST_NETWORK
|| ((dest->net > 0) && (dest->len == 0))
|| dest->mac_len == 0) {
if ((dest->net == BACNET_BROADCAST_NETWORK) ||
((dest->net > 0) && (dest->len == 0)) ||
(dest->mac_len == 0)) {
/* broadcast */
address.s_addr = BIP_Broadcast_Address.s_addr;
port = BIP_Port;