summaryrefslogtreecommitdiffstats
path: root/usr.sbin/memconfig
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2014-04-12 15:57:50 +0000
committerjsg <jsg@openbsd.org>2014-04-12 15:57:50 +0000
commita38b157bce1d9eb91d76881ec88e1720aac93e18 (patch)
tree75cd3572143ac57eb506f6f7fd9c0c6442f9f334 /usr.sbin/memconfig
parent- simplify macros in COMMANDS (diff)
downloadwireguard-openbsd-a38b157bce1d9eb91d76881ec88e1720aac93e18.tar.xz
wireguard-openbsd-a38b157bce1d9eb91d76881ec88e1720aac93e18.zip
fix a bit test
from FreeBSD rev 241829
Diffstat (limited to 'usr.sbin/memconfig')
-rw-r--r--usr.sbin/memconfig/memconfig.c4
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;