summaryrefslogtreecommitdiff
path: root/sys/scsi/cd.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2009-12-06 01:05:15 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2009-12-06 01:05:15 +0000
commit535cd85f4753b457a2f2ca64902621da27a338bb (patch)
tree2fbacc85efb027b02d43f53fe2d9d054afc48306 /sys/scsi/cd.c
parent6533a96ce5bbc8551b5b28a960e004b73141e307 (diff)
ansify dvd functions a bit.
Diffstat (limited to 'sys/scsi/cd.c')
-rw-r--r--sys/scsi/cd.c26
1 files changed, 7 insertions, 19 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c
index 970890d640b..51015d3c5f4 100644
--- a/sys/scsi/cd.c
+++ b/sys/scsi/cd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd.c,v 1.150 2009/10/13 19:33:19 pirofti Exp $ */
+/* $OpenBSD: cd.c,v 1.151 2009/12/06 01:05:14 dlg Exp $ */
/* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */
/*
@@ -1715,9 +1715,7 @@ dvd_auth(struct cd_softc *cd, union dvd_authinfo *a)
}
int
-dvd_read_physical(cd, s)
- struct cd_softc *cd;
- union dvd_struct *s;
+dvd_read_physical(struct cd_softc *cd, union dvd_struct *s)
{
struct scsi_generic cmd;
u_int8_t buf[4 + 4 * 20], *bufp;
@@ -1757,9 +1755,7 @@ dvd_read_physical(cd, s)
}
int
-dvd_read_copyright(cd, s)
- struct cd_softc *cd;
- union dvd_struct *s;
+dvd_read_copyright(struct cd_softc *cd, union dvd_struct *s)
{
struct scsi_generic cmd;
u_int8_t buf[8];
@@ -1782,9 +1778,7 @@ dvd_read_copyright(cd, s)
}
int
-dvd_read_disckey(cd, s)
- struct cd_softc *cd;
- union dvd_struct *s;
+dvd_read_disckey(struct cd_softc *cd, union dvd_struct *s)
{
struct scsi_read_dvd_structure cmd;
struct scsi_read_dvd_structure_data *buf;
@@ -1811,9 +1805,7 @@ dvd_read_disckey(cd, s)
}
int
-dvd_read_bca(cd, s)
- struct cd_softc *cd;
- union dvd_struct *s;
+dvd_read_bca(struct cd_softc *cd, union dvd_struct *s)
{
struct scsi_generic cmd;
u_int8_t buf[4 + 188];
@@ -1837,9 +1829,7 @@ dvd_read_bca(cd, s)
}
int
-dvd_read_manufact(cd, s)
- struct cd_softc *cd;
- union dvd_struct *s;
+dvd_read_manufact(struct cd_softc *cd, union dvd_struct *s)
{
struct scsi_read_dvd_structure cmd;
struct scsi_read_dvd_structure_data *buf;
@@ -1870,9 +1860,7 @@ dvd_read_manufact(cd, s)
}
int
-dvd_read_struct(cd, s)
- struct cd_softc *cd;
- union dvd_struct *s;
+dvd_read_struct(struct cd_softc *cd, union dvd_struct *s)
{
switch (s->type) {