chiark / gitweb /
src/setup.c: Insert missing parentheses.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 24 May 2014 13:00:03 +0000 (14:00 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 9 Jun 2014 19:58:07 +0000 (20:58 +0100)
Found from GCC warning.  This code never worked.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
src/setup.c

index 44c3cee..96a2a21 100644 (file)
@@ -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 */