From: Denys Vlasenko Date: Sun, 15 Nov 2009 01:48:01 +0000 (+0100) Subject: eject: band-aid for kernel headers using u8 type X-Git-Tag: 1_16_0~232 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=72ac6901f436e9ce22ef68ff89c3830c8b5f3ef1;p=oweals%2Fbusybox.git eject: band-aid for kernel headers using u8 type Signed-off-by: Denys Vlasenko --- diff --git a/miscutils/eject.c b/miscutils/eject.c index adff9e0e2..a869c6311 100644 --- a/miscutils/eject.c +++ b/miscutils/eject.c @@ -16,6 +16,7 @@ #include #include "libbb.h" /* Must be after libbb.h: they need size_t */ +#include "fix_u32.h" #include #include @@ -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; }