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/jtag/parport.c | |
parent | 5b9899d6ea1e0cf763465c64c700f20eddd893f9 (diff) |
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/jtag/parport.c')
-rw-r--r-- | src/jtag/parport.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jtag/parport.c b/src/jtag/parport.c index 399c00ad..52289c5e 100644 --- a/src/jtag/parport.c +++ b/src/jtag/parport.c @@ -411,7 +411,7 @@ static int parport_quit(void) COMMAND_HANDLER(parport_handle_parport_port_command) { - if (argc == 1) + if (CMD_ARGC == 1) { /* only if the port wasn't overwritten by cmdline */ if (parport_port == 0) @@ -432,7 +432,7 @@ COMMAND_HANDLER(parport_handle_parport_port_command) COMMAND_HANDLER(parport_handle_parport_cable_command) { - if (argc == 0) + if (CMD_ARGC == 0) return ERROR_OK; /* only if the cable name wasn't overwritten by cmdline */ @@ -447,7 +447,7 @@ COMMAND_HANDLER(parport_handle_parport_cable_command) COMMAND_HANDLER(parport_handle_write_on_exit_command) { - if (argc != 1) + if (CMD_ARGC != 1) { command_print(cmd_ctx, "usage: parport_write_on_exit <on | off>"); return ERROR_OK; @@ -463,7 +463,7 @@ COMMAND_HANDLER(parport_handle_write_on_exit_command) COMMAND_HANDLER(parport_handle_parport_toggling_time_command) { - if (argc == 1) { + if (CMD_ARGC == 1) { uint32_t ns; int retval = parse_u32(args[0], &ns); |