Prevents the command name from being modified in command handlers.
Again, this has cascading effects, but the patches are fairly minimal.

Signed-off-by: Zachary T Welch <z...@superlucidity.net>
---
 src/helper/command.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/helper/command.h b/src/helper/command.h
index 58d05a7..3f462ff 100644
--- a/src/helper/command.h
+++ b/src/helper/command.h
@@ -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).
-- 
1.6.4.4

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to