diff options
author | 2011-04-25 19:29:11 +0000 | |
---|---|---|
committer | 2011-04-25 19:29:11 +0000 | |
commit | 396d39c8b62d371f4d0bb65d00d2d65c97361a08 (patch) | |
tree | 7e8eeeda83d56bd8b49b0cf3b1fd7e25197c999a /sys | |
parent | do not use stdio in the (stupid) SIGSEGV handler (diff) | |
download | wireguard-openbsd-396d39c8b62d371f4d0bb65d00d2d65c97361a08.tar.xz wireguard-openbsd-396d39c8b62d371f4d0bb65d00d2d65c97361a08.zip |
Remove backwards compatibility for svnd. All new operations must use the
vnd devices nodes, which impliment svnd functionality -- that being the only
thing which vnd now supports. Confused? Don't worry, it is documented.
ok krw thib
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/vnd.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c index b856656ac12..fda155530ac 100644 --- a/sys/dev/vnd.c +++ b/sys/dev/vnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnd.c,v 1.113 2011/04/23 22:00:09 miod Exp $ */ +/* $OpenBSD: vnd.c,v 1.114 2011/04/25 19:29:11 deraadt Exp $ */ /* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */ /* @@ -83,11 +83,7 @@ int vnddebug = 0x00; #define DNPRINTF(f, p...) /* nothing */ #endif /* VNDDEBUG */ -/* - * vndunit is a bit weird. have to reconstitute the dev_t for - * DISKUNIT(), but with the minor masked off. - */ -#define vndunit(x) DISKUNIT(makedev(major(x), minor(x) & 0x7ff)) +#define vndunit(x) DISKUNIT(makedev(major(x), minor(x))) #define VNDLABELDEV(dev) \ makedev(major(dev), DISKMINOR(vndunit(dev), RAW_PART)) |