summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2011-07-06 17:26:33 +0000
committermatthew <matthew@openbsd.org>2011-07-06 17:26:33 +0000
commit3f8e112ed433df2da97168de9f62d09ab6833468 (patch)
treed77d64210598f603ef112fd12180bc8b20bf1d0a
parentIndent, no change. (diff)
downloadwireguard-openbsd-3f8e112ed433df2da97168de9f62d09ab6833468.tar.xz
wireguard-openbsd-3f8e112ed433df2da97168de9f62d09ab6833468.zip
Compact the vnd sc_flags bits.
ok krw@
-rw-r--r--sys/dev/vnd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index bd2550c649c..9ff9c03a1ec 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.140 2011/07/06 05:12:46 matthew Exp $ */
+/* $OpenBSD: vnd.c,v 1.141 2011/07/06 17:26:33 matthew Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -94,9 +94,9 @@ struct vnd_softc {
};
/* sc_flags */
-#define VNF_INITED 0x0002
-#define VNF_HAVELABEL 0x0400
-#define VNF_READONLY 0x2000
+#define VNF_INITED 0x0001
+#define VNF_HAVELABEL 0x0002
+#define VNF_READONLY 0x0004
#define VNDRW(v) ((v)->sc_flags & VNF_READONLY ? FREAD : FREAD|FWRITE)