From: deraadt Date: Sun, 19 Nov 1995 13:49:18 +0000 (+0000) Subject: from netbsd; get size of softc right X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1f75e6c480f8039f8d5b91e80b5664a6eef6c46d;p=openbsd from netbsd; get size of softc right --- 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