Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2012 01:20:20 +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-7@freebsd.org
Subject:   svn commit: r242023 - stable/7/usr.sbin/memcontrol
Message-ID:  <201210250120.q9P1KK76039431@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Thu Oct 25 01:20:20 2012
New Revision: 242023
URL: http://svn.freebsd.org/changeset/base/242023

Log:
  MFC r241829:
  Fix conditional expression: previously a bit vector was being operated
  	on by a logical not instead of the entire expression.
  
  Approved by:	cperciva (implicit)

Modified:
  stable/7/usr.sbin/memcontrol/memcontrol.c
Directory Properties:
  stable/7/usr.sbin/memcontrol/   (props changed)

Modified: stable/7/usr.sbin/memcontrol/memcontrol.c
==============================================================================
--- stable/7/usr.sbin/memcontrol/memcontrol.c	Thu Oct 25 01:20:19 2012	(r242022)
+++ stable/7/usr.sbin/memcontrol/memcontrol.c	Thu Oct 25 01:20:20 2012	(r242023)
@@ -235,7 +235,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?201210250120.q9P1KK76039431>