diff options
author | Russell Bryant <rbryant@redhat.com> | 2015-03-16 12:01:55 -0400 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-03-16 13:42:52 -0700 |
commit | 5f38375100dd1001c60b31aeb519d15b3b342d1b (patch) | |
tree | 5e3d16beaca5dfa317a918e3624b18a6b143d44f /tests/test-netflow.c | |
parent | 9e0fa1f23861fc917b5b56bbee6864ba7f1b8756 (diff) | |
download | openvswitch-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-netflow.c')
-rw-r--r-- | tests/test-netflow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-netflow.c b/tests/test-netflow.c index d9f29d1c2..631d7a21e 100644 --- a/tests/test-netflow.c +++ b/tests/test-netflow.c @@ -178,7 +178,7 @@ test_netflow_main(int argc, char *argv[]) int sock; int n; - proctitle_init(argc, argv); + ovs_cmdl_proctitle_init(argc, argv); set_program_name(argv[0]); service_start(&argc, &argv); parse_options(argc, argv); @@ -248,7 +248,7 @@ parse_options(int argc, char *argv[]) VLOG_LONG_OPTIONS, {NULL, 0, NULL, 0}, }; - char *short_options = long_options_to_short_options(long_options); + char *short_options = ovs_cmdl_long_options_to_short_options(long_options); for (;;) { int c = getopt_long(argc, argv, short_options, long_options, NULL); |