summaryrefslogtreecommitdiffstats
path: root/commands/printenv.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-10-19 16:16:46 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-10-19 16:18:27 +0200
commitf4ca85a2a3773202f556e19c9227d83508316108 (patch)
treeb945a7abe50035f22bb4de2aec53d6064729e913 /commands/printenv.c
parent15abc47dbae4a4f36c7fd6d6a43c96ee6ca880d9 (diff)
downloadbarebox-f4ca85a2a3773202f556e19c9227d83508316108.tar.gz
printenv: do not return negative values in a command
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/printenv.c')
-rw-r--r--commands/printenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/printenv.c b/commands/printenv.c
index 8766a12..27b2049 100644
--- a/commands/printenv.c
+++ b/commands/printenv.c
@@ -40,7 +40,7 @@ static int do_printenv (cmd_tbl_t *cmdtp, int argc, char *argv[])
return 0;
}
printf("## Error: \"%s\" not defined\n", argv[1]);
- return -EINVAL;
+ return 1;
}
current_c = get_current_context();