aboutsummaryrefslogtreecommitdiff
path: root/miscutils/eject.c
diff options
context:
space:
mode:
authorGravatar Rob Landley <rob@landley.net>2006-08-03 17:58:17 +0000
committerGravatar Rob Landley <rob@landley.net>2006-08-03 17:58:17 +0000
commit86b4d64aa3f5ca4c2824a8948541b0e18dfe0a74 (patch)
treeb3002e01131f99581c1be3462b96b2f2c40408f4 /miscutils/eject.c
parent7478804b783619762a52a740037126ef8711acc2 (diff)
downloadbusybox-86b4d64aa3f5ca4c2824a8948541b0e18dfe0a74.tar.gz
busybox-86b4d64aa3f5ca4c2824a8948541b0e18dfe0a74.tar.bz2
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 8ac66779a..282090d38 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);
}