From deede35c270b078ae63713cfc12aa2bbc9eb78a7 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Tue, 10 Nov 2009 04:37:17 -0800 Subject: command_handler_t: make args parameter const This patch prevents command handlers from modifying the strings passed in the 'args' array. --- src/helper/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helper/command.h') diff --git a/src/helper/command.h b/src/helper/command.h index 18664d23..fbcc0aa0 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, \ - const char *cmd, char **args, unsigned argc, ##extra) + const char *cmd, const char *args[], unsigned argc, ##extra) /** * Use this to macro to call a command helper (or a nested handler). -- cgit v1.2.3