- whitespace cleanup (and also check against the const first and only then look at bb_applet_name[1])
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -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); | |