From d22270e0ed291d3b08fd03a25181b279ca5e0911 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Tue, 10 Nov 2009 00:02:18 -0800 Subject: command_handler_t: make argc unsigned The number of command arguments will always be 0 or more, so use the right type in handlers. This has a cascading effect up through the layers, but the new COMMAND_HANDLER macros prevented total chaos. --- 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 74c6f367..55773156 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, int argc, ##extra) + char *cmd, char **args, unsigned argc, ##extra) /** * Use this to macro to call a command helper (or a nested handler). -- cgit v1.2.3