mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
cmd_usage: constify
The usage helper doesn't modify the command, so constify its input arg. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:

committed by
Wolfgang Denk

parent
147c7169e8
commit
e84ffddbce
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user