summaryrefslogtreecommitdiff
path: root/tests/test-bitmap.c
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2015-03-16 12:01:55 -0400
committerBen Pfaff <blp@nicira.com>2015-03-16 13:42:52 -0700
commit5f38375100dd1001c60b31aeb519d15b3b342d1b (patch)
tree5e3d16beaca5dfa317a918e3624b18a6b143d44f /tests/test-bitmap.c
parent9e0fa1f23861fc917b5b56bbee6864ba7f1b8756 (diff)
downloadopenvswitch-5f38375100dd1001c60b31aeb519d15b3b342d1b.tar.gz
command-line: add ovs_cmdl_ prefix
The coding style guidelines include the following: - Pick a unique name prefix (ending with an underscore) for each module, and apply that prefix to all of that module's externally visible names. Names of macro parameters, struct and union members, and parameters in function prototypes are not considered externally visible for this purpose. This patch adds the new prefix to the externally visible names. This makes it a bit more obvious what code is coming from common command line handling code. Signed-off-by: Russell Bryant <rbryant@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'tests/test-bitmap.c')
-rw-r--r--tests/test-bitmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-bitmap.c b/tests/test-bitmap.c
index 932133252..9c09e1491 100644
--- a/tests/test-bitmap.c
+++ b/tests/test-bitmap.c
@@ -148,7 +148,7 @@ run_benchmarks(int argc OVS_UNUSED, char *argv[])
printf("\n");
}
-static const struct command commands[] = {
+static const struct ovs_cmdl_command commands[] = {
{"check", NULL, 0, 0, run_tests},
{"benchmark", NULL, 1, 1, run_benchmarks},
{NULL, NULL, 0, 0, NULL},
@@ -158,7 +158,7 @@ static void
test_bitmap_main(int argc, char *argv[])
{
set_program_name(argv[0]);
- run_command(argc - 1, argv + 1, commands);
+ ovs_cmdl_run_command(argc - 1, argv + 1, commands);
}
OVSTEST_REGISTER("test-bitmap", test_bitmap_main);