diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-15 08:15:59 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-17 11:38:07 -0800 |
commit | 23402315ce01071f30d7ec0c5ca7563ce41f1cc6 (patch) | |
tree | 2b1cad0044d857844f7d6b35b5ffadd390594c9b /src/flash/tms470.c | |
parent | 7bf1a86e473a12882bf6f71cb4d0d416394b69d4 (diff) |
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/tms470.c')
-rw-r--r-- | src/flash/tms470.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/flash/tms470.c b/src/flash/tms470.c index d52dcc13..890db734 100644 --- a/src/flash/tms470.c +++ b/src/flash/tms470.c @@ -302,12 +302,12 @@ COMMAND_HANDLER(tms470_handle_flash_keyset_command) for (i = 0; i < 4; i++) { - int start = (0 == strncmp(args[i], "0x", 2)) ? 2 : 0; + int start = (0 == strncmp(CMD_ARGV[i], "0x", 2)) ? 2 : 0; - if (1 != sscanf(&args[i][start], "%" SCNx32 "", &flashKeys[i])) + if (1 != sscanf(&CMD_ARGV[i][start], "%" SCNx32 "", &flashKeys[i])) { - command_print(cmd_ctx, "could not process flash key %s", args[i]); - LOG_ERROR("could not process flash key %s", args[i]); + command_print(cmd_ctx, "could not process flash key %s", CMD_ARGV[i]); + LOG_ERROR("could not process flash key %s", CMD_ARGV[i]); return ERROR_INVALID_ARGUMENTS; } } @@ -362,7 +362,7 @@ COMMAND_HANDLER(tms470_handle_osc_megahertz_command) } else if (CMD_ARGC == 1) { - sscanf(args[0], "%d", &oscMHz); + sscanf(CMD_ARGV[0], "%d", &oscMHz); } if (oscMHz <= 0) @@ -391,7 +391,7 @@ COMMAND_HANDLER(tms470_handle_plldis_command) } else if (CMD_ARGC == 1) { - sscanf(args[0], "%d", &plldis); + sscanf(CMD_ARGV[0], "%d", &plldis); plldis = plldis ? 1 : 0; } |