]> git.ipfire.org Git - thirdparty/util-linux.git/commit
eject: remove list_speeds() #ifdef CDROM_SELECT_SPEED protection
authorSami Kerola <kerolasa@iki.fi>
Sun, 26 Nov 2017 17:47:51 +0000 (17:47 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 28 Nov 2017 13:39:19 +0000 (14:39 +0100)
commit6ce4256ecdf5fc75c9059670c175c71bce266eab
tree51387596f7b274ccffbbf2b5807a252e778418e5
parent0b7e4771883c378fa544af435159f08a1ffc7f4f
eject: remove list_speeds() #ifdef CDROM_SELECT_SPEED protection

The CDROM_SELECT_SPEED should be available practically everywhere.  Where
the define is missing an error message about path /proc/sys/dev/cdrom/info
cannot be opened is better error than a warnx() about kernel support.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/eject.c