diff options
Diffstat (limited to 'miscutils/eject.c')
-rw-r--r-- | miscutils/eject.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/miscutils/eject.c b/miscutils/eject.c index 631a344..ba7da5c 100644 --- a/miscutils/eject.c +++ b/miscutils/eject.c @@ -50,9 +50,8 @@ int eject_main(int argc, char **argv) if (flags & FLAG_CLOSE || (flags & FLAG_SMART && ioctl(dev, CDROM_DRIVE_STATUS) == CDS_TRAY_OPEN)) cmd = CDROMCLOSETRAY; - if (ioctl(dev, cmd)) { - bb_perror_msg_and_die("%s", device); - } + + ioctl_or_perror_and_die(dev, cmd, NULL, "%s", device); if (ENABLE_FEATURE_CLEAN_UP) close(dev); |