summaryrefslogtreecommitdiff
path: root/miscutils/eject.c
diff options
context:
space:
mode:
authorRob Landley2006-08-03 17:58:17 +0000
committerRob Landley2006-08-03 17:58:17 +0000
commit86b4d64aa3f5ca4c2824a8948541b0e18dfe0a74 (patch)
treeb3002e01131f99581c1be3462b96b2f2c40408f4 /miscutils/eject.c
parent7478804b783619762a52a740037126ef8711acc2 (diff)
downloadbusybox-86b4d64aa3f5ca4c2824a8948541b0e18dfe0a74.zip
busybox-86b4d64aa3f5ca4c2824a8948541b0e18dfe0a74.tar.gz
These should have been part of 15767 too.
Diffstat (limited to 'miscutils/eject.c')
-rw-r--r--miscutils/eject.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/miscutils/eject.c b/miscutils/eject.c
index 8ac6677..282090d 100644
--- a/miscutils/eject.c
+++ b/miscutils/eject.c
@@ -14,9 +14,6 @@
*/
#include "busybox.h"
-#include <fcntl.h>
-#include <sys/ioctl.h>
-#include <unistd.h>
#include <mntent.h>
/* various defines swiped from linux/cdrom.h */
@@ -40,7 +37,7 @@ int eject_main(int argc, char **argv)
erase_mtab(m->mnt_fsname);
}
}
- if (ioctl(bb_xopen(device, (O_RDONLY | O_NONBLOCK)),
+ if (ioctl(xopen(device, (O_RDONLY | O_NONBLOCK)),
(flags ? CDROMCLOSETRAY : CDROMEJECT))) {
bb_perror_msg_and_die("%s", device);
}