From: Ben Gras Date: Tue, 5 Jul 2005 11:08:15 +0000 (+0000) Subject: fixed small operator priority bug; ! has higher precedence than & in X-Git-Tag: v3.1.0~646 X-Git-Url: http://zhaoyanbai.com/repos/doc/tz-art.htm?a=commitdiff_plain;h=493ab97a8dcf68ee471a6c63141a703a73c728d5;p=minix.git fixed small operator priority bug; ! has higher precedence than & in (!flags & FLAGCHECK) --- diff --git a/servers/inet/mnx_eth.c b/servers/inet/mnx_eth.c index bdc7d54c7..6466cb042 100644 --- a/servers/inet/mnx_eth.c +++ b/servers/inet/mnx_eth.c @@ -122,7 +122,7 @@ PUBLIC void osdep_eth_init() rport= eth_port->etp_osdep.etp_port; assert(rport >= 0 && rport < eth_conf_nr); rep= ð_port_table[rport]; - if (!rep->etp_flags & EPF_ENABLED) + if (!(rep->etp_flags & EPF_ENABLED)) { printf( "eth%d: underlying ethernet device %d not enabled",