projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d7e2e7
)
eject: band-aid for kernel headers using u8 type
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 15 Nov 2009 01:48:01 +0000
(
02:48
+0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 15 Nov 2009 01:48:01 +0000
(
02:48
+0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/eject.c
patch
|
blob
|
history
diff --git
a/miscutils/eject.c
b/miscutils/eject.c
index adff9e0e285b33ad5df44a5a84d95447df4b528d..a869c6311cc6d427ea59a697a12e187cf14fae32 100644
(file)
--- 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;
}