aboutsummaryrefslogtreecommitdiff
path: root/src/hello.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-15 04:57:12 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-17 11:38:06 -0800
commit7bf1a86e473a12882bf6f71cb4d0d416394b69d4 (patch)
tree2c9c1d2138df704ac551cdafe105dbb68b8f23b8 /src/hello.c
parent5b9899d6ea1e0cf763465c64c700f20eddd893f9 (diff)
downloadriscv-openocd-7bf1a86e473a12882bf6f71cb4d0d416394b69d4.zip
riscv-openocd-7bf1a86e473a12882bf6f71cb4d0d416394b69d4.tar.gz
riscv-openocd-7bf1a86e473a12882bf6f71cb4d0d416394b69d4.tar.bz2
command_handler: change to 'argc' to CMD_ARGC
This patch converts all instances of 'argc' in COMMAND_HANDLER routines to use CMD_ARGC.
Diffstat (limited to 'src/hello.c')
-rw-r--r--src/hello.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hello.c b/src/hello.c
index 275150a..b2d1d30 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];