From 34ed308d7ecb3562c5da4c1941e59e7228847398 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 24 May 2014 14:00:03 +0100 Subject: [PATCH] src/setup.c: Insert missing parentheses. Found from GCC warning. This code never worked. Signed-off-by: Mark Wooding --- src/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup.c b/src/setup.c index 44c3cee..96a2a21 100644 --- a/src/setup.c +++ b/src/setup.c @@ -201,7 +201,7 @@ static void ccf_sortlist(adns_state ads, const char *fn, } } else { baselocal= ntohl(base.s_addr); - if (!baselocal & 0x080000000UL) /* class A */ + if (!(baselocal & 0x080000000UL)) /* class A */ mask.s_addr= htonl(0x0ff000000UL); else if ((baselocal & 0x0c0000000UL) == 0x080000000UL) mask.s_addr= htonl(0x0ffff0000UL); /* class B */ -- 2.30.2