svn commit: r242022 - stable/9/usr.sbin/memcontrol
Eitan Adler
eadler at FreeBSD.org
Thu Oct 25 01:20:20 UTC 2012
Author: eadler
Date: Thu Oct 25 01:20:19 2012
New Revision: 242022
URL: http://svn.freebsd.org/changeset/base/242022
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/9/usr.sbin/memcontrol/memcontrol.c
Directory Properties:
stable/9/usr.sbin/memcontrol/ (props changed)
Modified: stable/9/usr.sbin/memcontrol/memcontrol.c
==============================================================================
--- stable/9/usr.sbin/memcontrol/memcontrol.c Thu Oct 25 01:20:19 2012 (r242021)
+++ stable/9/usr.sbin/memcontrol/memcontrol.c Thu Oct 25 01:20:19 2012 (r242022)
@@ -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;
More information about the svn-src-stable-9
mailing list