summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2015-10-11 11:43:39 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2015-10-15 08:56:21 +0200
commit69f3f7b353b645b42452b4bf7817eb4e99f13bd1 (patch)
treeff85d93e2144147097b0a57205b25ba21baede20 /common
parent4ef026c30483a724bd577bf739e1da2474bc1001 (diff)
downloadbarebox-69f3f7b353b645b42452b4bf7817eb4e99f13bd1.tar.gz
barebox-69f3f7b353b645b42452b4bf7817eb4e99f13bd1.tar.xz
common/command.c: Replace magic number with appropriate constant
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/command.c b/common/command.c
index dc2cb88eaf..03c70834d1 100644
--- a/common/command.c
+++ b/common/command.c
@@ -83,7 +83,7 @@ int execute_command(int argc, char **argv)
#else
printf ("Unknown command '%s'\n", argv[0]);
#endif
- ret = 1; /* give up after bad command */
+ ret = COMMAND_ERROR; /* give up after bad command */
}
getopt_context_restore(&gc);