diff options
author | wollman <wollman@FreeBSD.org> | 1994-10-21 01:19:28 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-10-21 01:19:28 +0000 |
commit | 3a9b1c345aa754e6b2ad22027ceef577f7c77551 (patch) | |
tree | 5fc19e7150289ae5b5e20a8e8f5051859ddcad22 /sys/scsi/ch.c | |
parent | 207112cfcf4a98bc0c11c23595d30aa2d83c5b6f (diff) | |
download | FreeBSD-src-3a9b1c345aa754e6b2ad22027ceef577f7c77551.zip FreeBSD-src-3a9b1c345aa754e6b2ad22027ceef577f7c77551.tar.gz |
Make my ALLDEVS kernel compile (basically, LINT minus a lot of options).
This involves fixing a few things I broke last time.
Diffstat (limited to 'sys/scsi/ch.c')
-rw-r--r-- | sys/scsi/ch.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c index be01e80..ea7a168 100644 --- a/sys/scsi/ch.c +++ b/sys/scsi/ch.c @@ -2,7 +2,7 @@ * Written by grefen@????? * Based on scsi drivers by Julian Elischer (julian@tfs.com) * - * $Id: ch.c,v 1.8 1994/01/29 10:30:36 rgrimes Exp $ + * $Id: ch.c,v 1.9 1994/10/19 00:09:44 wollman Exp $ */ #include <sys/types.h> @@ -17,6 +17,7 @@ #include <sys/proc.h> #include <sys/user.h> #include <sys/chio.h> +#include <sys/malloc.h> #include <scsi/scsi_all.h> #include <scsi/scsi_changer.h> @@ -88,7 +89,7 @@ static int ch_externalize(struct proc *p, struct kern_devconf *kdc, void *userp, size_t len) { - return scsi_externalize(sd_data[kdc->kdc_unit]->sc_link, userp, &len); + return scsi_externalize(ch_data[kdc->kdc_unit].sc_link, userp, &len); } static struct kern_devconf kdc_ch_template = { |