From 7bf1a86e473a12882bf6f71cb4d0d416394b69d4 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Sun, 15 Nov 2009 04:57:12 -0800 Subject: command_handler: change to 'argc' to CMD_ARGC This patch converts all instances of 'argc' in COMMAND_HANDLER routines to use CMD_ARGC. --- src/hello.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hello.c') diff --git a/src/hello.c b/src/hello.c index 275150a4..b2d1d300 100644 --- a/src/hello.c +++ b/src/hello.c @@ -24,12 +24,12 @@ static COMMAND_HELPER(handle_hello_args, const char **sep, const char **name) { - if (argc > 1) + if (CMD_ARGC > 1) { LOG_ERROR("%s: too many arguments", CMD_NAME); return ERROR_COMMAND_SYNTAX_ERROR; } - if (1 == argc) + if (1 == CMD_ARGC) { *sep = " "; *name = args[0]; -- cgit v1.2.3