diff options
author | Alexander Dahl | 2024-02-26 16:46:43 +0100 |
---|---|---|
committer | Heinrich Schuchardt | 2024-03-13 08:09:23 +0100 |
commit | 27987b86a0a45849c1f6110252ec15b413caf34c (patch) | |
tree | 60e541d8594dae67b32d4c19dfab5e5117bb960c /doc/develop | |
parent | 1431ab8b6c1e215419391c0966e24933f173a58f (diff) |
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: 3d9640f55cb2 ("doc: expand README.commands")
Signed-off-by: Alexander Dahl <ada@thorsis.com>
Diffstat (limited to 'doc/develop')
-rw-r--r-- | doc/develop/commands.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/develop/commands.rst b/doc/develop/commands.rst index ede880d248c..5ad4e59c838 100644 --- a/doc/develop/commands.rst +++ b/doc/develop/commands.rst @@ -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). |