svn commit: trunk/busybox/util-linux
aldot at busybox.net
aldot at busybox.net
Sat Mar 18 15:59:31 UTC 2006
Author: aldot
Date: 2006-03-18 07:59:29 -0800 (Sat, 18 Mar 2006)
New Revision: 14566
Log:
- whitespace cleanup (and also check against the const first and only then look
at bb_applet_name[1])
Modified:
trunk/busybox/util-linux/freeramdisk.c
Changeset:
Modified: trunk/busybox/util-linux/freeramdisk.c
===================================================================
--- trunk/busybox/util-linux/freeramdisk.c 2006-03-18 13:07:29 UTC (rev 14565)
+++ trunk/busybox/util-linux/freeramdisk.c 2006-03-18 15:59:29 UTC (rev 14566)
@@ -28,8 +28,8 @@
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);
More information about the busybox-cvs
mailing list