diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-15 04:57:12 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-17 11:38:06 -0800 |
commit | 7bf1a86e473a12882bf6f71cb4d0d416394b69d4 (patch) | |
tree | 2c9c1d2138df704ac551cdafe105dbb68b8f23b8 /src/target/arm11.c | |
parent | 5b9899d6ea1e0cf763465c64c700f20eddd893f9 (diff) | |
download | riscv-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/target/arm11.c')
-rw-r--r-- | src/target/arm11.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c index 936edd8..4236ac8 100644 --- a/src/target/arm11.c +++ b/src/target/arm11.c @@ -2005,13 +2005,13 @@ static int arm11_build_reg_cache(struct target *target) static COMMAND_HELPER(arm11_handle_bool, bool *var, char *name) { - if (argc == 0) + if (CMD_ARGC == 0) { LOG_INFO("%s is %s.", name, *var ? "enabled" : "disabled"); return ERROR_OK; } - if (argc != 1) + if (CMD_ARGC != 1) return ERROR_COMMAND_SYNTAX_ERROR; switch (args[0][0]) @@ -2052,7 +2052,7 @@ BOOL_WRAPPER(hardware_step, "hardware single step") COMMAND_HANDLER(arm11_handle_vcr) { - switch (argc) { + switch (CMD_ARGC) { case 0: break; case 1: |