mirror of
https://github.com/u-boot/u-boot.git
synced 2025-01-19 09:13:31 +08:00
doc: develop: commands: Fix function prototype
When using the previous prototype you got a compiler warning like this:
warning: initialization of 'int (*)(struct cmd_tbl *, int, int, char * const*)' from incompatible pointer type 'int (*)(struct cmd_tbl *, int, int, const char **)' [-Wincompatible-pointer-types]
Fixes: 3d9640f55c
("doc: expand README.commands")
Signed-off-by: Alexander Dahl <ada@thorsis.com>
This commit is contained in:
parent
1431ab8b6c
commit
27987b86a0
@ -88,7 +88,7 @@ The command function pointer has to be of type
|
||||
|
||||
.. code-block:: c
|
||||
|
||||
int (*cmd)(struct cmd_tbl *cmdtp, int flag, int argc, const char *argv[]);
|
||||
int (*cmd)(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
|
||||
|
||||
cmdtp
|
||||
Table entry describing the command (see above).
|
||||
|
Loading…
Reference in New Issue
Block a user