summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-15 01:48:01 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2009-11-15 01:48:01 (GMT)
commit72ac6901f436e9ce22ef68ff89c3830c8b5f3ef1 (patch)
treea358cab549e9d4a99b547bff67244f88222d0d23
parent0d7e2e7c3e7e5bd02d522dd504d4041a01313dce (diff)
downloadbusybox-72ac6901f436e9ce22ef68ff89c3830c8b5f3ef1.tar.gz
busybox-72ac6901f436e9ce22ef68ff89c3830c8b5f3ef1.tar.bz2
eject: band-aid for kernel headers using u8 type
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--miscutils/eject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/miscutils/eject.c b/miscutils/eject.c
index adff9e0..a869c63 100644
--- a/miscutils/eject.c
+++ b/miscutils/eject.c
@@ -16,6 +16,7 @@
#include <sys/mount.h>
#include "libbb.h"
/* Must be after libbb.h: they need size_t */
+#include "fix_u32.h"
#include <scsi/sg.h>
#include <scsi/scsi.h>
@@ -75,7 +76,7 @@ static void eject_cdrom(unsigned flags, const char *dev)
int cmd = CDROMEJECT;
if (flags & FLAG_CLOSE
- || (flags & FLAG_SMART && ioctl(dev_fd, CDROM_DRIVE_STATUS) == CDS_TRAY_OPEN)
+ || ((flags & FLAG_SMART) && ioctl(dev_fd, CDROM_DRIVE_STATUS) == CDS_TRAY_OPEN)
) {
cmd = CDROMCLOSETRAY;
}