summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2005-06-18 01:09:04 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2005-06-18 01:09:04 +0000
commit1aac983868de815e71d08512f9e06842c71e4381 (patch)
tree9dea6f9293f6ca697312557f3992f234193854da
parent76f513e2c30d8fcc648c48fc36d790340f1b0dd3 (diff)
Shorten a couple of structure names:
scsi_mode_direct_blk_desc -> scsi_direct_blk_desc scsi_mode_blk_desc_big -> scsi_blk_desc_big
-rw-r--r--sys/scsi/scsi_all.h6
-rw-r--r--sys/scsi/scsi_base.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/scsi/scsi_all.h b/sys/scsi/scsi_all.h
index 25ebe9d3c7e..0469d18997f 100644
--- a/sys/scsi/scsi_all.h
+++ b/sys/scsi/scsi_all.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_all.h,v 1.26 2005/06/12 21:40:05 krw Exp $ */
+/* $OpenBSD: scsi_all.h,v 1.27 2005/06/18 01:09:03 krw Exp $ */
/* $NetBSD: scsi_all.h,v 1.10 1996/09/12 01:57:17 thorpej Exp $ */
/*
@@ -295,13 +295,13 @@ struct scsi_blk_desc {
u_int8_t blklen[3];
};
-struct scsi_mode_direct_blk_desc {
+struct scsi_direct_blk_desc {
u_int8_t nblocks[4];
u_int8_t density;
u_int8_t blklen[3];
};
-struct scsi_mode_blk_desc_big {
+struct scsi_blk_desc_big {
u_int8_t nblocks[8];
u_int8_t density;
u_int8_t reserved[3];
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index 69d131e9ece..530a23a0be5 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_base.c,v 1.83 2005/06/18 00:52:15 krw Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.84 2005/06/18 01:09:03 krw Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
@@ -464,7 +464,7 @@ scsi_do_mode_sense(sc_link, page, buf, page_data, density, block_count,
u_int64_t *block_count;
void **page_data;
{
- struct scsi_mode_direct_blk_desc *direct;
+ struct scsi_direct_blk_desc *direct;
struct scsi_blk_desc *general;
int error, blk_desc_len, offset;
@@ -517,7 +517,7 @@ scsi_do_mode_sense(sc_link, page, buf, page_data, density, block_count,
blk_desc_len = _2btol(buf->headers.hdr_big.blk_desc_len);
blk_desc:
- /* Both scsi_blk_desc and scsi_mode_direct_blk_desc are 8 bytes. */
+ /* Both scsi_blk_desc and scsi_direct_blk_desc are 8 bytes. */
if (blk_desc_len == 0 || (blk_desc_len % 8 != 0))
return (0);
@@ -536,7 +536,7 @@ blk_desc:
break;
default:
- direct = (struct scsi_mode_direct_blk_desc *)&buf->
+ direct = (struct scsi_direct_blk_desc *)&buf->
headers.buf[offset];
if (density)
*density = direct->density;