- whitespace cleanup (and also check against the const first and only then look
at bb_applet_name[1])
This commit is contained in:
parent
263e75d051
commit
66753a3850
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user