Exploit the value of the flag for -n to reduce the size of readlink_main() (shown here with CONFIG_FEATURE_READLINK_FOLLOW off) on x86_64.
function old new delta readlink_main 121 118 -3 Signed-off-by: Eric Blake <ebl...@redhat.com> --- v2: Add 'make bloatcheck' details --- coreutils/readlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreutils/readlink.c b/coreutils/readlink.c index 0a9aa957e..83c417e66 100644 --- a/coreutils/readlink.c +++ b/coreutils/readlink.c @@ -88,7 +88,7 @@ int readlink_main(int argc UNUSED_PARAM, char **argv) if (!buf) return EXIT_FAILURE; - printf((opt & 1) ? "%s" : "%s\n", buf); + printf("%s%s", buf, "\n"[opt & 1]); free(buf); fflush_stdout_and_exit_SUCCESS(); base-commit: d2b81b3dc2b31d32e1060d3ea8bd998d30a37d8a -- 2.39.2 _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox