Merge branch '2012wk23' of git://github.com/kerolasa/lelux-utiliteetit
* '2012wk23' of git://github.com/kerolasa/lelux-utiliteetit: lsblk: use blkdev_scsi_type_to_name() blkdev: add blkdev_scsi_type_to_name() wipefs: use symbolic value for markup mode eject: inform if CD-ROM drive is not ready docs: clean up partx.8 manual include: fix void pointer arithmetics warnings sysfs: fix printf format warnings build: fix unused parameter warnings build: fix redundant redeclaration warnings include: fix spurious list.h warnings uuidd: use output redirection which works [checkbashisms] blkid: fix realloc memory leak [cppcheck] setarch: do not use -1 as array index [cppcheck]
This commit is contained in:
commit
d5f9b6e5fb
26 changed files with 262 additions and 144 deletions
|
@ -435,6 +435,14 @@ static void toggle_tray(int fd)
|
|||
if (eject_cdrom(fd))
|
||||
err(EXIT_FAILURE, _("CD-ROM eject command failed"));
|
||||
return;
|
||||
case CDS_NO_INFO:
|
||||
warnx(_("no CD-ROM information available"));
|
||||
return;
|
||||
case CDS_DRIVE_NOT_READY:
|
||||
warnx(_("CD-ROM drive is not ready"));
|
||||
return;
|
||||
default:
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue