summaryrefslogtreecommitdiffhomepage
path: root/coreutils/yes.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/yes.c')
-rw-r--r--coreutils/yes.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/coreutils/yes.c b/coreutils/yes.c
index 9d3f67550..d757a4504 100644
--- a/coreutils/yes.c
+++ b/coreutils/yes.c
@@ -19,14 +19,13 @@
/* This is a NOFORK applet. Be very careful! */
int yes_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int yes_main(int argc, char **argv)
+int yes_main(int argc UNUSED_PARAM, char **argv)
{
char **pp;
argv[0] = (char*)"y";
- if (argc != 1) {
+ if (argv[1])
++argv;
- }
do {
pp = argv;