From: Bernhard Reutner-Fischer Date: Sat, 18 Mar 2006 15:59:29 +0000 (-0000) Subject: - whitespace cleanup (and also check against the const first and only then look X-Git-Tag: 1_1_0~64 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=66753a38509423fd81d85c61fd0401370353386d;p=oweals%2Fbusybox.git - whitespace cleanup (and also check against the const first and only then look at bb_applet_name[1]) --- 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);