Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Sep 2012 18:10:29 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r240035 - stable/9/usr.sbin/ancontrol
Message-ID:  <201209021810.q82IATLu046662@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sun Sep  2 18:10:29 2012
New Revision: 240035
URL: http://svn.freebsd.org/changeset/base/240035

Log:
  MFC r238221:
  	Fix always 0 tautologly revealed by gcc46
  
  Approved by:	cperciva (implicit)

Modified:
  stable/9/usr.sbin/ancontrol/ancontrol.c
Directory Properties:
  stable/9/usr.sbin/ancontrol/   (props changed)

Modified: stable/9/usr.sbin/ancontrol/ancontrol.c
==============================================================================
--- stable/9/usr.sbin/ancontrol/ancontrol.c	Sun Sep  2 18:08:46 2012	(r240034)
+++ stable/9/usr.sbin/ancontrol/ancontrol.c	Sun Sep  2 18:10:29 2012	(r240035)
@@ -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?201209021810.q82IATLu046662>