diff options
Diffstat (limited to 'miscutils/eject.c')
-rw-r--r-- | miscutils/eject.c | 5 |
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 @@ | |||
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include "busybox.h" | 16 | #include "busybox.h" |
17 | #include <fcntl.h> | ||
18 | #include <sys/ioctl.h> | ||
19 | #include <unistd.h> | ||
20 | #include <mntent.h> | 17 | #include <mntent.h> |
21 | 18 | ||
22 | /* various defines swiped from linux/cdrom.h */ | 19 | /* various defines swiped from linux/cdrom.h */ |
@@ -40,7 +37,7 @@ int eject_main(int argc, char **argv) | |||
40 | erase_mtab(m->mnt_fsname); | 37 | erase_mtab(m->mnt_fsname); |
41 | } | 38 | } |
42 | } | 39 | } |
43 | if (ioctl(bb_xopen(device, (O_RDONLY | O_NONBLOCK)), | 40 | if (ioctl(xopen(device, (O_RDONLY | O_NONBLOCK)), |
44 | (flags ? CDROMCLOSETRAY : CDROMEJECT))) { | 41 | (flags ? CDROMCLOSETRAY : CDROMEJECT))) { |
45 | bb_perror_msg_and_die("%s", device); | 42 | bb_perror_msg_and_die("%s", device); |
46 | } | 43 | } |