From 23402315ce01071f30d7ec0c5ca7563ce41f1cc6 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Sun, 15 Nov 2009 08:15:59 -0800 Subject: command_handler: change 'args' to CMD_ARGV This patch converts all instances of 'args' in COMMAND_HANDLER routines to use CMD_ARGV macro. --- src/flash/ecos.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/flash/ecos.c') diff --git a/src/flash/ecos.c b/src/flash/ecos.c index 8d2d3eec..863c12b2 100644 --- a/src/flash/ecos.c +++ b/src/flash/ecos.c @@ -122,7 +122,7 @@ FLASH_BANK_COMMAND_HANDLER(ecosflash_flash_bank_command) exit(-1); } bank->driver_priv = info; - info->driverPath = strdup(args[6]); + info->driverPath = strdup(CMD_ARGV[6]); /* eCos flash sector sizes are not exposed to OpenOCD, use 0x10000 as * a way to improve impedance match between OpenOCD and eCos flash @@ -141,10 +141,10 @@ FLASH_BANK_COMMAND_HANDLER(ecosflash_flash_bank_command) bank->sectors[i].is_protected = 0; } - info->target = get_target(args[5]); + info->target = get_target(CMD_ARGV[5]); if (info->target == NULL) { - LOG_ERROR("target '%s' not defined", args[5]); + LOG_ERROR("target '%s' not defined", CMD_ARGV[5]); return ERROR_FAIL; } return ERROR_OK; -- cgit v1.2.3