command_handler: change to 'argc' to CMD_ARGC

This patch converts all instances of 'argc' in COMMAND_HANDLER routines
to use CMD_ARGC.
This commit is contained in:
Zachary T Welch
2009-11-15 04:57:12 -08:00
parent 5b9899d6ea
commit 7bf1a86e47
64 changed files with 311 additions and 311 deletions

View File

@@ -710,7 +710,7 @@ COMMAND_HANDLER(mg_write_cmd)
struct fileio fileio;
int ret;
if (argc != 3) {
if (CMD_ARGC != 3) {
return ERROR_COMMAND_SYNTAX_ERROR;
}
@@ -775,7 +775,7 @@ COMMAND_HANDLER(mg_dump_cmd)
struct fileio fileio;
int ret;
if (argc != 4) {
if (CMD_ARGC != 4) {
return ERROR_COMMAND_SYNTAX_ERROR;
}
@@ -1223,7 +1223,7 @@ COMMAND_HANDLER(mg_config_cmd)
if ((ret = mg_mflash_rst()) != ERROR_OK)
return ret;
switch (argc) {
switch (CMD_ARGC) {
case 2:
if (!strcmp(args[1], "boot"))
return mg_boot_config();
@@ -1288,7 +1288,7 @@ COMMAND_HANDLER(mg_bank_cmd)
struct target *target;
int i;
if (argc < 4)
if (CMD_ARGC < 4)
{
return ERROR_COMMAND_SYNTAX_ERROR;
}