diff options
Diffstat (limited to 'coreutils/printenv.c')
-rw-r--r-- | coreutils/printenv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/printenv.c b/coreutils/printenv.c index 06d68d0..31d76d7 100644 --- a/coreutils/printenv.c +++ b/coreutils/printenv.c @@ -11,10 +11,10 @@ #include "libbb.h" int printenv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int printenv_main(int argc, char **argv) +int printenv_main(int argc ATTRIBUTE_UNUSED, char **argv) { /* no variables specified, show whole env */ - if (argc == 1) { + if (!argv[1]) { int e = 0; while (environ[e]) puts(environ[e++]); |