summaryrefslogtreecommitdiffstats
path: root/include/command.h
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 /include/command.h
parent147c7169e859128e86da96275c48d200ad720fd6 (diff)
downloadblackbird-obmc-uboot-e84ffddbced7620aa9fe4b9e8bfffb6a994c7b4e.tar.gz
blackbird-obmc-uboot-e84ffddbced7620aa9fe4b9e8bfffb6a994c7b4e.zip
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 'include/command.h')
-rw-r--r--include/command.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/command.h b/include/command.h
index 37e118c94a..f1accd0953 100644
--- a/include/command.h
+++ b/include/command.h
@@ -71,7 +71,7 @@ int _do_help (cmd_tbl_t *cmd_start, int cmd_items, cmd_tbl_t * cmdtp, int
cmd_tbl_t *find_cmd(const char *cmd);
cmd_tbl_t *find_cmd_tbl (const char *cmd, cmd_tbl_t *table, int table_len);
-extern int cmd_usage(cmd_tbl_t *cmdtp);
+extern int cmd_usage(const cmd_tbl_t *cmdtp);
#ifdef CONFIG_AUTO_COMPLETE
extern int var_complete(int argc, char * const argv[], char last_char, int maxv, char *cmdv[]);
OpenPOWER on IntegriCloud