mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
shell: strings in shell_command_t are const
This commit is contained in:
parent
bda23cb246
commit
4ed38bd2f3
@ -41,8 +41,8 @@ typedef void (*shell_command_handler_t)(int argc, char **argv);
|
||||
* i.e. the last element must be ``{ NULL, NULL, NULL }``.
|
||||
*/
|
||||
typedef struct shell_command_t {
|
||||
char *name; /**< Name of the function */
|
||||
char *desc; /**< Description to print in the "help" command. */
|
||||
const char *name; /**< Name of the function */
|
||||
const char *desc; /**< Description to print in the "help" command. */
|
||||
shell_command_handler_t handler; /**< The callback function. */
|
||||
} shell_command_t;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user