memcontrol(8): Fix wrong parenthesizing.
authorSascha Wildner <saw@online.de>
Fri, 16 Dec 2011 13:18:11 +0000 (14:18 +0100)
committerSascha Wildner <saw@online.de>
Fri, 16 Dec 2011 13:18:11 +0000 (14:18 +0100)
usr.sbin/memcontrol/memcontrol.c

index d240b40..750d4ef 100644 (file)
@@ -24,7 +24,6 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/usr.sbin/memcontrol/memcontrol.c,v 1.3.4.5 2002/09/16 21:58:41 dwmalone Exp $
- * $DragonFly: src/usr.sbin/memcontrol/memcontrol.c,v 1.3 2005/03/18 01:57:58 cpressey Exp $
  */
 
 #include <sys/types.h>
@@ -236,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;