diff options
author | wollman <wollman@FreeBSD.org> | 1993-12-19 00:55:01 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1993-12-19 00:55:01 +0000 |
commit | 71b67e5a560e27117fd4ff9fe76b1e67f1423f1e (patch) | |
tree | 62dff2aa17f4c31d27a9595b764f9cbc9810eb80 /sys/scsi/ch.c | |
parent | c7341bb860bd0d1789ca0b8bfce96c383fd7dbbc (diff) | |
download | FreeBSD-src-71b67e5a560e27117fd4ff9fe76b1e67f1423f1e.zip FreeBSD-src-71b67e5a560e27117fd4ff9fe76b1e67f1423f1e.tar.gz |
Make everything compile with -Wtraditional. Make it easier to distribute
a binary link-kit. Make all non-optional options (pagers, procfs) standard,
and update LINT to reflect new symtab requirements.
NB: -Wtraditional will henceforth be forgotten. This editing pass was
primarily intended to detect any constructions where the old code might
have been relying on traditional C semantics or syntax. These were all
fixed, and the result of fixing some of them means that -Wall is now a
realistic possibility within a few weeks.
Diffstat (limited to 'sys/scsi/ch.c')
-rw-r--r-- | sys/scsi/ch.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c index fd7b1eb..ceec9d2 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.5 1993/11/18 05:02:48 rgrimes Exp $ + * $Id: ch.c,v 1.6 1993/11/25 01:37:31 wollman Exp $ */ #include <sys/types.h> @@ -22,6 +22,8 @@ #include <scsi/scsi_changer.h> #include <scsi/scsiconf.h> +static errval ch_mode_sense(u_int32, u_int32); + struct scsi_xfer ch_scsi_xfer[NCH]; u_int32 ch_xfer_block_wait[NCH]; @@ -233,7 +235,7 @@ chioctl(dev, cmd, arg, mode) unit = UNIT(dev); sc_link = ch_data[unit].sc_link; - switch (cmd) { + switch ((int)cmd) { case CHIOOP:{ struct chop *ch = (struct chop *) arg; SC_DEBUG(sc_link, SDEV_DB2, @@ -384,7 +386,7 @@ ch_position(unit, stat, chm, to, flags) * device and use the results to fill out the global * parameter structure. */ -errval +static errval ch_mode_sense(unit, flags) u_int32 unit, flags; { @@ -449,7 +451,7 @@ ch_mode_sense(unit, flags) u_int32 pc = (*b++) & 0x3f; u_int32 pl = *b++; u_char *bb = b; - switch (pc) { + switch ((int)pc) { case 0x1d: ch_data[unit].chmo = p2copy(bb); ch_data[unit].chms = p2copy(bb); |