]> git.sur5r.net Git - openocd/blobdiff - src/jtag/at91rm9200.c
command_handler: change 'args' to CMD_ARGV
[openocd] / src / jtag / at91rm9200.c
index 90d94c958b14245d4fb7a2510fdd8e6b07d387f0..8fbdf3942394dc7c4bd7cc7010e820c27de693d8 100644 (file)
@@ -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;