diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2024-01-03 11:47:05 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-01-16 17:05:29 -0500 |
commit | 48f31ee7427f7e2b87b5b9cf9b86e3b411acf8f0 (patch) | |
tree | 79276efc8ed33018d6c371f32ef2aeccbee16d33 /common | |
parent | 88a5b32057982d22d8fd4bdc2a3aacec569367c2 (diff) | |
download | u-boot-48f31ee7427f7e2b87b5b9cf9b86e3b411acf8f0.zip u-boot-48f31ee7427f7e2b87b5b9cf9b86e3b411acf8f0.tar.gz u-boot-48f31ee7427f7e2b87b5b9cf9b86e3b411acf8f0.tar.bz2 |
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>
Diffstat (limited to 'common')
-rw-r--r-- | common/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/command.c b/common/command.c index 7821c27..83feaac 100644 --- a/common/command.c +++ b/common/command.c @@ -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. */ |