This commit is contained in:
Veit Heller
2014-09-21 20:37:28 +02:00
parent 56ff30d2b7
commit e1fe098be6
3 changed files with 4 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ int main(){
(caps & CDC_CLOSE_TRAY) ? "yes" : "no",
(caps & CDC_LOCK) ? "yes" : "no",
(caps & CDC_PLAY_AUDIO) ? "yes" : "no",
(caps & CDC_SELECT_DISK) ? "yes" : "no");
(caps & CDC_SELECT_DISC) ? "yes" : "no");
close(fd);
return 0;

View File

@@ -15,7 +15,7 @@ int main(){
struct cdrom_tocentry toc_entry;
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");
toc_entry.cdte_track = 1;

View File

@@ -12,7 +12,8 @@ static inline void die(int code, const char* message){
}
int main(){
register int fd, i;
register int fd;
register unsigned char i;
struct cdrom_tochdr toc_hdr;
struct cdrom_tocentry toc_entry;