From 384fb3c3533f526e114f8b5244e4be874d3ca8f9 Mon Sep 17 00:00:00 2001 From: likewise Date: Wed, 28 Apr 2004 23:36:39 +0000 Subject: [PATCH] Corrected comparison by adding missing parentheses. --- src/core/ipv4/ip_addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ipv4/ip_addr.c b/src/core/ipv4/ip_addr.c index 05c08bb8..78a78910 100644 --- a/src/core/ipv4/ip_addr.c +++ b/src/core/ipv4/ip_addr.c @@ -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)