From 4fa00ce8a5b769acb5be4e6b13be713428ef23e4 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 18 Apr 2024 09:21:46 +0100 Subject: 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. --- coreutils/yes.c | 5 ----- 1 file changed, 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 @@ #include "libbb.h" -#if ENABLE_PLATFORM_MINGW32 -# undef putchar -# define putchar(c) winansi_fputc(c, stdout) -#endif - int yes_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int yes_main(int argc UNUSED_PARAM, char **argv) { -- cgit v1.2.3-55-g6feb