From b71073c4bcbe95aea6a554f2f5eb0a1723b98d5b Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Sun, 8 Jul 2012 00:52:54 +0000 Subject: [PATCH] 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(-) diff --git a/usr.sbin/ancontrol/ancontrol.c b/usr.sbin/ancontrol/ancontrol.c index 4a114538a19f..839cdcb311ea 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); }