Merge pull request #1063 from Kijewski/shell_command_t-fix-const
shell: strings in shell_command_t are const
This commit is contained in:
commit
72036742d8
@ -41,8 +41,8 @@ typedef void (*shell_command_handler_t)(int argc, char **argv);
|
|||||||
* i.e. the last element must be ``{ NULL, NULL, NULL }``.
|
* i.e. the last element must be ``{ NULL, NULL, NULL }``.
|
||||||
*/
|
*/
|
||||||
typedef struct shell_command_t {
|
typedef struct shell_command_t {
|
||||||
char *name; /**< Name of the function */
|
const char *name; /**< Name of the function */
|
||||||
char *desc; /**< Description to print in the "help" command. */
|
const char *desc; /**< Description to print in the "help" command. */
|
||||||
shell_command_handler_t handler; /**< The callback function. */
|
shell_command_handler_t handler; /**< The callback function. */
|
||||||
} shell_command_t;
|
} shell_command_t;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user