]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd/command.c: constify "arg" argument of cmd_get_data_size()
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Wed, 3 Jan 2024 10:47:05 +0000 (11:47 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 16 Jan 2024 22:05:29 +0000 (17:05 -0500)
commit48f31ee7427f7e2b87b5b9cf9b86e3b411acf8f0
tree79276efc8ed33018d6c371f32ef2aeccbee16d33
parent88a5b32057982d22d8fd4bdc2a3aacec569367c2
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>
common/command.c
include/command.h