diff options
author | 1995-11-19 13:49:18 +0000 | |
---|---|---|
committer | 1995-11-19 13:49:18 +0000 | |
commit | 1f75e6c480f8039f8d5b91e80b5664a6eef6c46d (patch) | |
tree | 84ed31fc85266c25db1ed0597825c704b96c4eff | |
parent | from netbsd; Fix transposed copyin() args, from Niklas Hallqvist <niklas@appli.se>. (diff) | |
download | wireguard-openbsd-1f75e6c480f8039f8d5b91e80b5664a6eef6c46d.tar.xz wireguard-openbsd-1f75e6c480f8039f8d5b91e80b5664a6eef6c46d.zip |
from netbsd; get size of softc right
-rw-r--r-- | sys/dev/ramdisk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ramdisk.c b/sys/dev/ramdisk.c index 556af6ef2b0..e1b4c5f2cc7 100644 --- a/sys/dev/ramdisk.c +++ b/sys/dev/ramdisk.c @@ -1,4 +1,4 @@ -/* $NetBSD: ramdisk.c,v 1.1 1995/10/08 23:30:57 gwr Exp $ */ +/* $NetBSD: ramdisk.c,v 1.1.2.1 1995/11/17 23:34:25 gwr Exp $ */ /* * Copyright (c) 1995 Gordon W. Ross, Leo Weppelman. @@ -103,7 +103,7 @@ static void rd_attach(struct device *, struct device *self, void *); struct cfdriver rdcd = { NULL, "rd", rd_match, rd_attach, - DV_DISK, sizeof(struct device), NULL, 0 }; + DV_DULL, sizeof(struct rd_softc), NULL, 0 }; static int rd_match(parent, self, aux) @@ -391,7 +391,7 @@ rd_ioctl_kalloc(sc, urd, proc) #if RAMDISK_SERVER /* - * Handle ioctl RD_SETCONF for (sc_type == RD_KMEM_ALLOCATED) + * Handle ioctl RD_SETCONF for (sc_type == RD_UMEM_SERVER) * Set config, then become the I/O server for this unit. */ int |