Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jul 2012 00:52:54 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r238221 - head/usr.sbin/ancontrol
Message-ID:  <201207080052.q680qsQo006120@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sun Jul  8 00:52:54 2012
New Revision: 238221
URL: http://svn.freebsd.org/changeset/base/238221

Log:
  Fix always 0 tautologly revealed by gcc46
  
  Approved by:	cperciva
  MFC after:	1 week

Modified:
  head/usr.sbin/ancontrol/ancontrol.c

Modified: head/usr.sbin/ancontrol/ancontrol.c
==============================================================================
--- head/usr.sbin/ancontrol/ancontrol.c	Sun Jul  8 00:51:38 2012	(r238220)
+++ head/usr.sbin/ancontrol/ancontrol.c	Sun Jul  8 00:52:54 2012	(r238221)
@@ -1443,7 +1443,7 @@ an_enable_leap_mode(const char *iface, c
 
 	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);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207080052.q680qsQo006120>