From e3b83ca591d26ef54da73e627a2e52aaebe75415 Mon Sep 17 00:00:00 2001 From: eadler Date: Sun, 8 Jul 2012 00:52:54 +0000 Subject: Fix always 0 tautologly revealed by gcc46 Approved by: cperciva MFC after: 1 week --- usr.sbin/ancontrol/ancontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/ancontrol') diff --git a/usr.sbin/ancontrol/ancontrol.c b/usr.sbin/ancontrol/ancontrol.c index 4a11453..839cdcb 100644 --- a/usr.sbin/ancontrol/ancontrol.c +++ b/usr.sbin/ancontrol/ancontrol.c @@ -1443,7 +1443,7 @@ an_enable_leap_mode(const char *iface, const char *username) caps = (struct an_ltv_caps *)&areq; - if (!caps->an_softcaps & AN_AUTHTYPE_LEAP) { + if (!(caps->an_softcaps & AN_AUTHTYPE_LEAP)) { fprintf(stderr, "Firmware does not support LEAP\n"); exit(1); } -- cgit v1.1