Bugfixes
This commit is contained in:
@@ -33,7 +33,7 @@ int main(){
|
|||||||
(caps & CDC_CLOSE_TRAY) ? "yes" : "no",
|
(caps & CDC_CLOSE_TRAY) ? "yes" : "no",
|
||||||
(caps & CDC_LOCK) ? "yes" : "no",
|
(caps & CDC_LOCK) ? "yes" : "no",
|
||||||
(caps & CDC_PLAY_AUDIO) ? "yes" : "no",
|
(caps & CDC_PLAY_AUDIO) ? "yes" : "no",
|
||||||
(caps & CDC_SELECT_DISK) ? "yes" : "no");
|
(caps & CDC_SELECT_DISC) ? "yes" : "no");
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -15,7 +15,7 @@ int main(){
|
|||||||
struct cdrom_tocentry toc_entry;
|
struct cdrom_tocentry toc_entry;
|
||||||
struct cdrom_msf start_stop;
|
struct cdrom_msf start_stop;
|
||||||
|
|
||||||
if((fd = open("/dev/cdrom", O_RDONLY) == -1)
|
if((fd = open("/dev/cdrom", O_RDONLY)) == -1)
|
||||||
die(127, "cd_check_read: Cannot open /dev/cdrom");
|
die(127, "cd_check_read: Cannot open /dev/cdrom");
|
||||||
|
|
||||||
toc_entry.cdte_track = 1;
|
toc_entry.cdte_track = 1;
|
||||||
|
@@ -12,7 +12,8 @@ static inline void die(int code, const char* message){
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
register int fd, i;
|
register int fd;
|
||||||
|
register unsigned char i;
|
||||||
struct cdrom_tochdr toc_hdr;
|
struct cdrom_tochdr toc_hdr;
|
||||||
struct cdrom_tocentry toc_entry;
|
struct cdrom_tocentry toc_entry;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user