Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 180379 Details for
Bug 257047
sys-devel/gcc-4.3.3 + old glibc causes media-sound/cdparanoia-3.10.2-r2 compile failure
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to scsi_interface.c
cdparanoia_scsi_gcc43.patch (text/plain), 1.16 KB, created by
Karl H
on 2009-01-31 08:07:23 UTC
(
hide
)
Description:
patch to scsi_interface.c
Filename:
MIME Type:
Creator:
Karl H
Created:
2009-01-31 08:07:23 UTC
Size:
1.16 KB
patch
obsolete
>--- cdparanoia-III-10.2.orig/interface/scsi_interface.c 2008-09-11 22:33:30.000000000 +0200 >+++ cdparanoia-III-10.2/interface/scsi_interface.c 2009-01-31 08:50:30.000000000 +0100 >@@ -656,6 +656,7 @@ static int scsi_read_toc (cdrom_drive *d > > /* read the header first */ > unsigned char sense[SG_MAX_SENSE]; >+ const unsigned char orig_cmd[10] = { 0x43, 0, 0, 0, 0, 0, 1, 0, 12, 0}; > unsigned char cmd[10] = { 0x43, 0, 0, 0, 0, 0, 1, 0, 12, 0}; > cmd[1]=d->lun<<5; > >@@ -674,7 +675,7 @@ static int scsi_read_toc (cdrom_drive *d > } > > for (i = first; i <= last; i++){ >- memcpy(cmd, (char []){ 0x43, 0, 0, 0, 0, 0, 0, 0, 12, 0}, 10); >+ memcpy(cmd, orig_cmd, 10); > cmd[1]=d->lun<<5; > cmd[6]=i; > >@@ -695,7 +696,7 @@ static int scsi_read_toc (cdrom_drive *d > } > } > >- memcpy(cmd, (char []){ 0x43, 0, 0, 0, 0, 0, 0, 0, 12, 0}, 10); >+ memcpy(cmd, orig_cmd, 10); > cmd[1]=d->lun<<5; > cmd[6]=0xAA; > >@@ -745,7 +746,8 @@ static int scsi_read_toc2 (cdrom_drive * > } > > for (i = 0; i < tracks; i++){ >- memcpy(cmd, (char[]){ 0xe5, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 10); >+ memset(cmd, 0, 10); >+ cmd[0]=0xe5; > cmd[5]=i+1; > cmd[8]=255; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 257047
:
180376
|
180378
| 180379 |
180381