summaryrefslogtreecommitdiff
path: root/src/jtag/at91rm9200.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/jtag/at91rm9200.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/jtag/at91rm9200.c')
-rw-r--r--src/jtag/at91rm9200.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jtag/at91rm9200.c b/src/jtag/at91rm9200.c
index 90d94c95..8fbdf394 100644
--- a/src/jtag/at91rm9200.c
+++ b/src/jtag/at91rm9200.c
@@ -185,7 +185,7 @@ static int at91rm9200_speed(int speed)
return ERROR_OK;
}
-static int at91rm9200_handle_device_command(struct command_context *cmd_ctx, char *cmd, char **args, int argc)
+static int at91rm9200_handle_device_command(struct command_context *cmd_ctx, char *cmd, char **CMD_ARGV, int argc)
{
if (CMD_ARGC == 0)
return ERROR_OK;
@@ -193,8 +193,8 @@ static int at91rm9200_handle_device_command(struct command_context *cmd_ctx, cha
/* only if the device name wasn't overwritten by cmdline */
if (at91rm9200_device == 0)
{
- at91rm9200_device = malloc(strlen(args[0]) + sizeof(char));
- strcpy(at91rm9200_device, args[0]);
+ at91rm9200_device = malloc(strlen(CMD_ARGV[0]) + sizeof(char));
+ strcpy(at91rm9200_device, CMD_ARGV[0]);
}
return ERROR_OK;