summaryrefslogtreecommitdiffstats
path: root/usr.sbin/memcontrol/memcontrol.c
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-10-22 02:12:15 +0000
committereadler <eadler@FreeBSD.org>2012-10-22 02:12:15 +0000
commit31cc468089c6b473ff4b45e12a56b670af20fbfc (patch)
tree08b875f90f29964a6ea6c3d229e5784062387c0a /usr.sbin/memcontrol/memcontrol.c
parent90e13cd2ebe3ea1c12bc90e6e86b17b39673832c (diff)
downloadFreeBSD-src-31cc468089c6b473ff4b45e12a56b670af20fbfc.zip
FreeBSD-src-31cc468089c6b473ff4b45e12a56b670af20fbfc.tar.gz
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
Diffstat (limited to 'usr.sbin/memcontrol/memcontrol.c')
-rw-r--r--usr.sbin/memcontrol/memcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/memcontrol/memcontrol.c b/usr.sbin/memcontrol/memcontrol.c
index 542bc3a..36329af 100644
--- a/usr.sbin/memcontrol/memcontrol.c
+++ b/usr.sbin/memcontrol/memcontrol.c
@@ -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;
OpenPOWER on IntegriCloud