- whitespace cleanup (and also check against the const first and only then look
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 18 Mar 2006 15:59:29 +0000 (15:59 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 18 Mar 2006 15:59:29 +0000 (15:59 -0000)
  at bb_applet_name[1])

util-linux/freeramdisk.c

index 8a3f2fddfb38833a3683e744707c02d08a00fb49..923a1516009aa544e8451f0e78d03edca7760296 100644 (file)
@@ -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);