aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-18 15:59:29 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-18 15:59:29 +0000
commit1860ec37373bb1b37b04e0aba6734c9199cf0201 (patch)
tree5d2374e3f3c202e09b2b8093f76de41a2ab0a954 /util-linux
parent7043c75974293bf3967eb865ae5c1cdfbc7f0d62 (diff)
downloadbusybox-w32-1860ec37373bb1b37b04e0aba6734c9199cf0201.tar.gz
busybox-w32-1860ec37373bb1b37b04e0aba6734c9199cf0201.tar.bz2
busybox-w32-1860ec37373bb1b37b04e0aba6734c9199cf0201.zip
- whitespace cleanup (and also check against the const first and only then look
at bb_applet_name[1]) git-svn-id: svn://busybox.net/trunk/busybox@14566 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-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)
28 fd = bb_xopen(argv[1], O_RDWR); 28 fd = bb_xopen(argv[1], O_RDWR);
29 29
30 // Act like freeramdisk, fdflush, or both depending on configuration. 30 // Act like freeramdisk, fdflush, or both depending on configuration.
31 result = ioctl(fd, (bb_applet_name[1]=='r' && ENABLE_FREERAMDISK) 31 result = ioctl(fd, (ENABLE_FREERAMDISK && bb_applet_name[1]=='r')
32 || !ENABLE_FDFLUSH ? _IO(0x12,97) : _IO(2,0x4b)); 32 || !ENABLE_FDFLUSH ? _IO(0x12,97) : _IO(2,0x4b));
33 33
34 if (ENABLE_FEATURE_CLEAN_UP) close(fd); 34 if (ENABLE_FEATURE_CLEAN_UP) close(fd);
35 35