summaryrefslogtreecommitdiff
path: root/src/flash/faux.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-15 08:15:59 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-17 11:38:07 -0800
commit23402315ce01071f30d7ec0c5ca7563ce41f1cc6 (patch)
tree2b1cad0044d857844f7d6b35b5ffadd390594c9b /src/flash/faux.c
parent7bf1a86e473a12882bf6f71cb4d0d416394b69d4 (diff)
downloadopenocd+libswd-23402315ce01071f30d7ec0c5ca7563ce41f1cc6.tar.gz
openocd+libswd-23402315ce01071f30d7ec0c5ca7563ce41f1cc6.tar.bz2
openocd+libswd-23402315ce01071f30d7ec0c5ca7563ce41f1cc6.tar.xz
openocd+libswd-23402315ce01071f30d7ec0c5ca7563ce41f1cc6.zip
command_handler: change 'args' to CMD_ARGV
This patch converts all instances of 'args' in COMMAND_HANDLER routines to use CMD_ARGV macro.
Diffstat (limited to 'src/flash/faux.c')
-rw-r--r--src/flash/faux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/faux.c b/src/flash/faux.c
index 54acf754..558d7b07 100644
--- a/src/flash/faux.c
+++ b/src/flash/faux.c
@@ -76,10 +76,10 @@ FLASH_BANK_COMMAND_HANDLER(faux_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]);
free(info->memory);
free(info);
return ERROR_FAIL;