Corrected comparison by adding missing parentheses.

This commit is contained in:
likewise 2004-04-28 23:36:39 +00:00
parent 8603e19516
commit 384fb3c353

View File

@ -57,7 +57,7 @@ u8_t ip_addr_isbroadcast(struct ip_addr *addr, struct netif *netif)
return 1;
/* no broadcast support on this network interface
* we cannot proceed matching against broadcast addresses */
else if (netif->flags & NETIF_FLAG_BROADCAST == 0)
else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0)
return 0;
/* address matches network interface address exactly? => no broadcast */
else if (addr->addr == netif->ip_addr.addr)