summaryrefslogtreecommitdiff
path: root/src/flash/orion_nand.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/orion_nand.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/orion_nand.c')
-rw-r--r--src/flash/orion_nand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flash/orion_nand.c b/src/flash/orion_nand.c
index 69d6d966..c8fc9698 100644
--- a/src/flash/orion_nand.c
+++ b/src/flash/orion_nand.c
@@ -143,14 +143,14 @@ NAND_DEVICE_COMMAND_HANDLER(orion_nand_device_command)
}
nand->controller_priv = hw;
- hw->target = get_target(args[1]);
+ hw->target = get_target(CMD_ARGV[1]);
if (!hw->target) {
- LOG_ERROR("target '%s' not defined", args[1]);
+ LOG_ERROR("target '%s' not defined", CMD_ARGV[1]);
free(hw);
return ERROR_NAND_DEVICE_INVALID;
}
- COMMAND_PARSE_NUMBER(u32, args[2], base);
+ COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], base);
cle = 0;
ale = 1;