X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Fcommand.h;h=18664d23a216451365f08c530fee13a35d312fc2;hp=557731563675ea8fae2e1729cdc58774ba61a929;hb=cc63d6e72b49dd01706c4d768c1f9bb91db2ae1d;hpb=d22270e0ed291d3b08fd03a25181b279ca5e0911 diff --git a/src/helper/command.h b/src/helper/command.h index 5577315636..18664d23a2 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).