mirror of
https://xff.cz/git/u-boot/
synced 2025-10-18 00:11:48 +02:00
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
@@ -186,7 +186,7 @@ int cmd_process_error(struct cmd_tbl *cmdtp, int err);
|
||||
* Return: data size in bytes (1, 2, 4, 8) or CMD_DATA_SIZE_ERR for an invalid
|
||||
* character, or CMD_DATA_SIZE_STR for a string
|
||||
*/
|
||||
int cmd_get_data_size(char *arg, int default_size);
|
||||
int cmd_get_data_size(const char *arg, int default_size);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CMD_BOOTD
|
||||
|
Reference in New Issue
Block a user