diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-04-12 15:57:51 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-04-12 15:57:51 +0000 |
commit | c6c3863a25c93dde3caef897670d1e3e3557b934 (patch) | |
tree | 4c91752c37ce7ee285f2daa11cb6ed1dc1e20c9d /usr.sbin | |
parent | 480002b6d55cf2b7b3f4691ae0a9712c18c2cf39 (diff) |
fix a bit test
from FreeBSD rev 241829
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/memconfig/memconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/memconfig/memconfig.c b/usr.sbin/memconfig/memconfig.c index 66cc9ffa53a..0155827c3b0 100644 --- a/usr.sbin/memconfig/memconfig.c +++ b/usr.sbin/memconfig/memconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: memconfig.c,v 1.15 2011/09/20 08:28:51 deraadt Exp $ */ +/* $OpenBSD: memconfig.c,v 1.16 2014/04/12 15:57:50 jsg Exp $ */ /*- * Copyright (c) 1999 Michael Smith <msmith@freebsd.org> @@ -242,7 +242,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; |