diff options
Diffstat (limited to 'tests/test-commands.c')
| -rw-r--r-- | tests/test-commands.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-commands.c b/tests/test-commands.c index b4613a567d..c0bc39f88f 100644 --- a/tests/test-commands.c +++ b/tests/test-commands.c @@ -146,7 +146,7 @@ static struct cmd_node keychain_key_node = }; static int -test_callback(struct cmd_element *cmd, struct vty *vty, int argc, const char *argv[]) +test_callback(const struct cmd_element *cmd, struct vty *vty, int argc, struct cmd_token *argv[]) { int offset; int rv; @@ -162,7 +162,7 @@ test_callback(struct cmd_element *cmd, struct vty *vty, int argc, const char *ar for (i = 0; i < argc; i++) { rv = snprintf(test_buf + offset, sizeof(test_buf) - offset, "%s'%s'", - (i == 0) ? ": " : ", ", argv[i]); + (i == 0) ? ": " : ", ", argv[i]->arg); if (rv < 0) abort(); offset += rv; @@ -332,7 +332,7 @@ test_run(struct prng *prng, struct vty *vty, const char *cmd, unsigned int edit_ for (j = 0; j < vector_active(descriptions); j++) { struct cmd_token *cmd = vector_slot(descriptions, j); - printf(" '%s' '%s'\n", cmd->cmd, cmd->desc); + printf(" '%s' '%s'\n", cmd->text, cmd->desc); } vector_free(descriptions); } |
