From b1364be7e271c5a080e29efcda209a190a82d6d9 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Thu, 4 May 2023 16:10:37 -0400 Subject: ansii c --- src/commands/yes.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/commands/yes.c') diff --git a/src/commands/yes.c b/src/commands/yes.c index 39cf75d..6a44789 100644 --- a/src/commands/yes.c +++ b/src/commands/yes.c @@ -6,15 +6,16 @@ static void help(void) { } COMMAND(yes) { + const char* repeat; + int i; parse_help(argc, argv, help); - const char* repeat; if (argc == 0) { repeat = "y"; } else { repeat = argv[0]; - for (int i = 1; i < argc; i++) { + for (i = 1; i < argc; i++) { *(argv[i]-1) = ' '; } } -- cgit v1.2.3-freya