summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-03-18 15:59:29 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-03-18 15:59:29 +0000
commit66753a38509423fd81d85c61fd0401370353386d (patch)
tree5d2374e3f3c202e09b2b8093f76de41a2ab0a954
parent263e75d051a437b252b47de14c225e75854fdf4e (diff)
- whitespace cleanup (and also check against the const first and only then look
at bb_applet_name[1])
-rw-r--r--util-linux/freeramdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c
index 8a3f2fddf..923a15160 100644
--- a/util-linux/freeramdisk.c
+++ b/util-linux/freeramdisk.c
@@ -28,8 +28,8 @@ int freeramdisk_main(int argc, char **argv)
fd = bb_xopen(argv[1], O_RDWR);
// Act like freeramdisk, fdflush, or both depending on configuration.
- result = ioctl(fd, (bb_applet_name[1]=='r' && ENABLE_FREERAMDISK)
- || !ENABLE_FDFLUSH ? _IO(0x12,97) : _IO(2,0x4b));
+ result = ioctl(fd, (ENABLE_FREERAMDISK && bb_applet_name[1]=='r')
+ || !ENABLE_FDFLUSH ? _IO(0x12,97) : _IO(2,0x4b));
if (ENABLE_FEATURE_CLEAN_UP) close(fd);