diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-05-28 06:16:34 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-05-28 06:16:34 +0000 |
commit | 8867169aa39629c7991c639c003af9cb095e7a73 (patch) | |
tree | 1530183b24770bfa0d1e8d127c1c8b122ccf2b24 /sys/scsi/sd_scsi.c | |
parent | 1dcd23cf610eed2bb363b7889f224424b8b80cee (diff) |
Add _lto8b() and _8btol() to decode nblocks field of
scsi_mode_blk_desc_big. Will be needed to move st to new mode sense
function.
Be a bit more careful with types of parameters to scsi_do_mode_sense,
using u_int32_t instead of int.
No functional change.
Diffstat (limited to 'sys/scsi/sd_scsi.c')
-rw-r--r-- | sys/scsi/sd_scsi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/scsi/sd_scsi.c b/sys/scsi/sd_scsi.c index 47785001fc4..c1ffd2b4510 100644 --- a/sys/scsi/sd_scsi.c +++ b/sys/scsi/sd_scsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd_scsi.c,v 1.12 2005/05/25 20:52:41 krw Exp $ */ +/* $OpenBSD: sd_scsi.c,v 1.13 2005/05/28 06:16:33 krw Exp $ */ /* $NetBSD: sd_scsi.c,v 1.8 1998/10/08 20:21:13 thorpej Exp $ */ /*- @@ -140,8 +140,9 @@ sd_scsibus_get_parms(sd, dp, flags) struct sd_scsibus_mode_sense_data scsi_sense; struct scsi_mode_sense_buf buf; union scsi_disk_pages *sense_pages = NULL; + u_int32_t blksize; u_int16_t rpm = 0; - int page, error, blksize; + int page, error; dp->rot_rate = 3600; |