SHA256
1
0
forked from pool/cdparanoia
cdparanoia/cdparanoia-III-alpha9.8-gcc34-2.patch

39 lines
1.2 KiB
Diff

--- interface/scsi_interface.c
+++ interface/scsi_interface.c
@@ -586,7 +586,7 @@
unsigned char *mode;
((struct sg_info *)d->sg)->setup_scsi_cmd(d, SCSI_MODE_SELECT_10, 10, 16, 0);
- memcpy(((struct sg_info *)d->sg)->dxferp,(char []) {
+ memcpy(((struct sg_info *)d->sg)->dxferp,((char []) {
/* mode parameter header */
0, 0, 0, 0, 0, 0, 0,
8, /* Block Descriptor Length */
@@ -594,7 +594,7 @@
0, /* Density Code */
0, 0, 0, /* # of Blocks */
0, /* reserved */
- 0, 0, 0},/* Blocklen */
+ 0, 0, 0}),/* Blocklen */
16);
mode = ((struct sg_info *)d->sg)->dxferp;
@@ -614,7 +614,7 @@
unsigned char *mode;
((struct sg_info *)d->sg)->setup_scsi_cmd(d, SCSI_MODE_SELECT_6, 6, 12, 0);
- memcpy(((struct sg_info *)d->sg)->dxferp,(char []) {
+ memcpy(((struct sg_info *)d->sg)->dxferp,((char []) {
/* mode section */
0,
0, 0,
@@ -622,7 +622,7 @@
0, /* Density Code */
0, 0, 0, /* # of Blocks */
0, /* reserved */
- 0, 0, 0},/* Blocklen */
+ 0, 0, 0}),/* Blocklen */
12);
/* prepare to read cds in the previous mode */