diff options
author | Ron Yorston <rmy@pobox.com> | 2024-04-18 09:21:46 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-04-18 09:21:46 +0100 |
commit | 4fa00ce8a5b769acb5be4e6b13be713428ef23e4 (patch) | |
tree | 7521412e6a33a9ec3cfeedc6da6f1310a7e6df5a | |
parent | d93104502dac767997d7804c900d8da20f1264f8 (diff) | |
download | busybox-w32-4fa00ce8a5b769acb5be4e6b13be713428ef23e4.tar.gz busybox-w32-4fa00ce8a5b769acb5be4e6b13be713428ef23e4.tar.bz2 busybox-w32-4fa00ce8a5b769acb5be4e6b13be713428ef23e4.zip |
yes: code shrink
Now that putchar() is implemented using winansi_fputc() it isn't
necessary to perform an explicit substitution in 'yes'.
This was previously done so 'yes' could check for a broken pipe.
Saves 16-32 bytes.
-rw-r--r-- | coreutils/yes.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/coreutils/yes.c b/coreutils/yes.c index 493462201..e04ad3ac0 100644 --- a/coreutils/yes.c +++ b/coreutils/yes.c | |||
@@ -31,11 +31,6 @@ | |||
31 | 31 | ||
32 | #include "libbb.h" | 32 | #include "libbb.h" |
33 | 33 | ||
34 | #if ENABLE_PLATFORM_MINGW32 | ||
35 | # undef putchar | ||
36 | # define putchar(c) winansi_fputc(c, stdout) | ||
37 | #endif | ||
38 | |||
39 | int yes_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 34 | int yes_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
40 | int yes_main(int argc UNUSED_PARAM, char **argv) | 35 | int yes_main(int argc UNUSED_PARAM, char **argv) |
41 | { | 36 | { |