diff options
author | Andreas Fenkart <andreas.fenkart@digitalstrom.com> | 2016-04-19 22:43:41 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-05-27 09:56:19 -0400 |
commit | cedb341e7f44f4686c8c0afb149a9f7940be110a (patch) | |
tree | 1c2f345446a979e97602162dd1e1871dade7cb48 /tools/env/fw_env.c | |
parent | c3a23e8b5f7c13d9de389d25d756a7da64bc5144 (diff) |
tools/env: fw_printenv pass value_only as argument
Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
Diffstat (limited to 'tools/env/fw_env.c')
-rw-r--r-- | tools/env/fw_env.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 0c448079cc..aa394858a0 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -239,7 +239,7 @@ int parse_aes_key(char *key, uint8_t *bin_key) * Print the current definition of one, or more, or all * environment variables */ -int fw_printenv (int argc, char *argv[]) +int fw_printenv(int argc, char *argv[], int value_only) { char *env, *nxt; int i, rc = 0; @@ -262,7 +262,7 @@ int fw_printenv (int argc, char *argv[]) return 0; } - if (printenv_args.name_suppress && argc != 1) { + if (value_only && argc != 1) { fprintf(stderr, "## Error: `-n' option requires exactly one argument\n"); return -1; @@ -283,7 +283,7 @@ int fw_printenv (int argc, char *argv[]) } val = envmatch (name, env); if (val) { - if (!printenv_args.name_suppress) { + if (!value_only) { fputs (name, stdout); putc ('=', stdout); } |