summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-04-23 23:43:24 +0000
committerWolfgang Denk <wd@denx.de>2011-07-26 16:34:41 +0200
commite84ffddbced7620aa9fe4b9e8bfffb6a994c7b4e (patch)
treec7a7b6c602246736d27527779ac2179d9f7c81bf /common
parent147c7169e859128e86da96275c48d200ad720fd6 (diff)
downloadu-boot-imx-e84ffddbced7620aa9fe4b9e8bfffb6a994c7b4e.zip
u-boot-imx-e84ffddbced7620aa9fe4b9e8bfffb6a994c7b4e.tar.gz
u-boot-imx-e84ffddbced7620aa9fe4b9e8bfffb6a994c7b4e.tar.bz2
cmd_usage: constify
The usage helper doesn't modify the command, so constify its input arg. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
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 b3ec510..ddaed68 100644
--- a/common/command.c
+++ b/common/command.c
@@ -140,7 +140,7 @@ cmd_tbl_t *find_cmd (const char *cmd)
return find_cmd_tbl(cmd, &__u_boot_cmd_start, len);
}
-int cmd_usage(cmd_tbl_t *cmdtp)
+int cmd_usage(const cmd_tbl_t *cmdtp)
{
printf("%s - %s\n\n", cmdtp->name, cmdtp->usage);