cmd/command.c: constify "arg" argument of cmd_get_data_size()
This function obviously does not and must not modify "arg". Change the prototype to allow passing an argument of type "const char*" without requiring a cast. Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
This commit is contained in:
committed by
Tom Rini
parent
88a5b32057
commit
48f31ee742
@@ -465,7 +465,7 @@ int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp)
|
||||
#endif
|
||||
|
||||
#ifdef CMD_DATA_SIZE
|
||||
int cmd_get_data_size(char* arg, int default_size)
|
||||
int cmd_get_data_size(const char *arg, int default_size)
|
||||
{
|
||||
/* Check for a size specification .b, .w or .l.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user