X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=tests%2Fovstest.c;h=f05da0584d163942e7073d01f926d97030e7443f;hb=5f38375100dd1001c60b31aeb519d15b3b342d1b;hp=5e985ae59370a340493e5c1f6a14ed0e8bb40114;hpb=9e0fa1f23861fc917b5b56bbee6864ba7f1b8756;p=cascardo%2Fovs.git diff --git a/tests/ovstest.c b/tests/ovstest.c index 5e985ae59..f05da0584 100644 --- a/tests/ovstest.c +++ b/tests/ovstest.c @@ -26,14 +26,14 @@ #include "ovstest.h" #include "util.h" -static struct command *commands = NULL; +static struct ovs_cmdl_command *commands = NULL; static size_t n_commands = 0; static size_t allocated_commands = 0; static void -add_command(struct command *cmd) +add_command(struct ovs_cmdl_command *cmd) { - const struct command nil = {NULL, NULL, 0, 0, NULL}; + const struct ovs_cmdl_command nil = {NULL, NULL, 0, 0, NULL}; while (n_commands + 1 >= allocated_commands) { commands = x2nrealloc(commands, &allocated_commands, @@ -62,7 +62,7 @@ flush_help_string(struct ds *ds) static void help(int argc OVS_UNUSED, char *argv[] OVS_UNUSED) { - const struct command *p; + const struct ovs_cmdl_command *p; struct ds test_names = DS_EMPTY_INITIALIZER; const int linesize = 70; @@ -86,7 +86,7 @@ help(int argc OVS_UNUSED, char *argv[] OVS_UNUSED) static void add_top_level_commands(void) { - struct command help_cmd = {"--help", NULL, 0, 0, help}; + struct ovs_cmdl_command help_cmd = {"--help", NULL, 0, 0, help}; add_command(&help_cmd); } @@ -94,7 +94,7 @@ add_top_level_commands(void) void ovstest_register(const char *test_name, ovstest_func f) { - struct command test_cmd; + struct ovs_cmdl_command test_cmd; test_cmd.name = test_name; test_cmd.usage = NULL; @@ -125,7 +125,7 @@ main(int argc, char *argv[]) add_top_level_commands(); if (argc > 1) { - run_command(argc - 1, argv + 1, commands); + ovs_cmdl_run_command(argc - 1, argv + 1, commands); } cleanup();