mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
command_handler_t: make cmd parameter const
Prevents the command name from being modified in command handlers. Again, this has cascading effects, but the patches are fairly minimal.
This commit is contained in:
@@ -88,7 +88,7 @@ typedef struct command_context_s
|
||||
*/
|
||||
#define __COMMAND_HANDLER(name, extra...) \
|
||||
int name(struct command_context_s *cmd_ctx, \
|
||||
char *cmd, char **args, unsigned argc, ##extra)
|
||||
const char *cmd, char **args, unsigned argc, ##extra)
|
||||
|
||||
/**
|
||||
* Use this to macro to call a command helper (or a nested handler).
|
||||
|
||||
Reference in New Issue
Block a user