summaryrefslogtreecommitdiffhomepage
path: root/miscutils/eject.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/eject.c')
-rw-r--r--miscutils/eject.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/miscutils/eject.c b/miscutils/eject.c
index 8864687e4..3f1d6ab44 100644
--- a/miscutils/eject.c
+++ b/miscutils/eject.c
@@ -48,13 +48,9 @@ extern int eject_main(int argc, char **argv)
if((m = find_mount_point(device, bb_path_mtab_file))) {
if(umount(m->mnt_dir))
bb_error_msg_and_die("Can't umount");
-#ifdef CONFIG_FEATURE_MTAB_SUPPORT
- else
- erase_mtab(m->mnt_fsname);
-#endif
+ else if(ENABLE_FEATURE_MTAB_SUPPORT) erase_mtab(m->mnt_fsname);
}
- if (ioctl(bb_xopen( device,
- (O_RDONLY | O_NONBLOCK)),
+ if (ioctl(bb_xopen( device, (O_RDONLY | O_NONBLOCK)),
( flags ? CDROMCLOSETRAY : CDROMEJECT)))
{
bb_perror_msg_and_die(device);