coreutils

General Software Utilities
git clone http://git.omkov.net/coreutils
Log | Tree | Refs | README | LICENCE | Download

AuthorJamozed <[email protected]>
Date2020-07-06 10:26:36
Commitc3d67f01ebfcd3620e8b39e83e7ffd5e8570a724
Parentbaad6e1d417377daf62ec9301ce00d074dc286b4

echo: Rename argc and argv for consistency

Diffstat

M src/echo.c | 4 ++--

1 files changed, 2 insertions, 2 deletions

diff --git a/src/echo.c b/src/echo.c
index ee0cf19..9a22e62 100644
--- a/src/echo.c
+++ b/src/echo.c
@@ -19,8 +19,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
 
 #include <stdio.h>
 
-int main(int argc, char *argv[]) {
-	register char **p = &argv[1]; if (*p) { fputs(*p, stdout);
+int main(int ac, char *av[]) { (void)ac;
+	register char **p = &av[1]; if (*p) { fputs(*p, stdout);
 		for (++p; *p; ++p) { fputc(' ', stdout); fputs(*p, stdout); }
 	} fputc('\n', stdout); return 0;
 }