Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2012 02:12:15 +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: r241829 - head/usr.sbin/memcontrol
Message-ID:  <201210220212.q9M2CFpn008027@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Mon Oct 22 02:12:15 2012
New Revision: 241829
URL: http://svn.freebsd.org/changeset/base/241829

Log:
  Fix conditional expression: previously a bit vector was being operated
  on by a logical not instead of the entire expression.
  
  Approved by:	cperciva
  MFC after:	3 days

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

Modified: head/usr.sbin/memcontrol/memcontrol.c
==============================================================================
--- head/usr.sbin/memcontrol/memcontrol.c	Mon Oct 22 02:12:11 2012	(r241828)
+++ head/usr.sbin/memcontrol/memcontrol.c	Mon Oct 22 02:12:15 2012	(r241829)
@@ -233,7 +233,7 @@ setfunc(int memfd, int argc, char *argv[
     while(argc--) {
 	for (i = 0; attrnames[i].name != NULL; i++) {
 	    if (!strcmp(attrnames[i].name, argv[0])) {
-		if (!attrnames[i].kind & MDF_SETTABLE)
+		if (!(attrnames[i].kind & MDF_SETTABLE))
 		    help("flags");
 		mrd.mr_flags |= attrnames[i].val;
 		break;



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