summaryrefslogtreecommitdiff
path: root/sys/scsi/scsiconf.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-12-03 15:58:29 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-12-03 15:58:29 +0000
commit38937626ea24db7a3c881dd76523581779f13706 (patch)
tree7d159897ebd938321f3b11ed04637cdc04ba0433 /sys/scsi/scsiconf.h
parent0f502f8d4b74cc43c8334beaf9b91660d54db987 (diff)
Check for expected mode sense page code as well as expected mode page length when
constructing the pointer to the page data. Remove now unneeded DISK_PGCODE(). Usual misc whitespace/modernization tweaks to functions being modified.
Diffstat (limited to 'sys/scsi/scsiconf.h')
-rw-r--r--sys/scsi/scsiconf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h
index 28ce42a3c04..c9c0596dab5 100644
--- a/sys/scsi/scsiconf.h
+++ b/sys/scsi/scsiconf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsiconf.h,v 1.178 2019/11/28 17:26:00 krw Exp $ */
+/* $OpenBSD: scsiconf.h,v 1.179 2019/12/03 15:58:28 krw Exp $ */
/* $NetBSD: scsiconf.h,v 1.35 1997/04/02 02:29:38 mycroft Exp $ */
/*
@@ -487,8 +487,8 @@ int scsi_mode_sense(struct scsi_link *, int, int, struct scsi_mode_header *,
size_t, int, int);
int scsi_mode_sense_big(struct scsi_link *, int, int,
struct scsi_mode_header_big *, size_t, int, int);
-void * scsi_mode_sense_page(struct scsi_mode_header *, int);
-void * scsi_mode_sense_big_page(struct scsi_mode_header_big *, int);
+void * scsi_mode_sense_page(struct scsi_mode_header *, int, int);
+void * scsi_mode_sense_big_page(struct scsi_mode_header_big *, int, int);
void scsi_parse_blkdesc(struct scsi_link *, union scsi_mode_sense_buf *, int,
u_int32_t *, u_int64_t *, u_int32_t *);
int scsi_do_mode_sense(struct scsi_link *, int,