diff options
author | Ronen Friedman <rfriedma@redhat.com> | 2021-08-19 14:55:24 +0200 |
---|---|---|
committer | Ronen Friedman <rfriedma@redhat.com> | 2021-08-19 15:40:48 +0200 |
commit | 2d4c360a4ab82fd11aee16e7b77fbf2ea560a353 (patch) | |
tree | e3da0100f7aca176ee8cf5c159a919b9221ea4b3 /src/test/test_c2c.cc | |
parent | common: improve argv_to_vec() to accept both const and non-const argv (diff) | |
download | ceph-2d4c360a4ab82fd11aee16e7b77fbf2ea560a353.tar.xz ceph-2d4c360a4ab82fd11aee16e7b77fbf2ea560a353.zip |
common: modify 'main()s' to use new argv_to_vec() signature
A followup to PR #42820 that modified argv_to_vec() signature
(for style and performance).
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
Diffstat (limited to 'src/test/test_c2c.cc')
-rw-r--r-- | src/test/test_c2c.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test_c2c.cc b/src/test/test_c2c.cc index a8b12dadd41..5fe1ac2f1fc 100644 --- a/src/test/test_c2c.cc +++ b/src/test/test_c2c.cc @@ -34,8 +34,7 @@ void sigterm_handler(int signum) int main(int argc, const char **argv) { int ret = 0; - std::vector<const char*> args; - argv_to_vec(argc, argv, args); + auto args = argv_to_vec(argc, argv); auto cct = global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY, CINIT_FLAG_NO_DEFAULT_CONFIG_FILE); |