- whitespace cleanup (and also check against the const first and only then look

at bb_applet_name[1])
This commit is contained in:
Bernhard Reutner-Fischer 2006-03-18 15:59:29 +00:00
parent 263e75d051
commit 66753a3850

View 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);