svn commit: r240035 - stable/9/usr.sbin/ancontrol

Eitan Adler eadler at FreeBSD.org
Sun Sep 2 18:10:30 UTC 2012


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);
 	}


More information about the svn-src-stable-9 mailing list