]> Zhao Yanbai Git Server - minix.git/commitdiff
fixed small operator priority bug; ! has higher precedence than & in
authorBen Gras <ben@minix3.org>
Tue, 5 Jul 2005 11:08:15 +0000 (11:08 +0000)
committerBen Gras <ben@minix3.org>
Tue, 5 Jul 2005 11:08:15 +0000 (11:08 +0000)
(!flags & FLAGCHECK)

servers/inet/mnx_eth.c

index bdc7d54c728d03290bc9316a79d44b4467732055..6466cb042bd9ee8fc27cf31e40eb05eff2c3714e 100644 (file)
@@ -122,7 +122,7 @@ PUBLIC void osdep_eth_init()
                rport= eth_port->etp_osdep.etp_port;
                assert(rport >= 0 && rport < eth_conf_nr);
                rep= &eth_port_table[rport];
-               if (!rep->etp_flags & EPF_ENABLED)
+               if (!(rep->etp_flags & EPF_ENABLED))
                {
                        printf(
                        "eth%d: underlying ethernet device %d not enabled",