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/libcephsqlite | |
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/libcephsqlite')
-rw-r--r-- | src/test/libcephsqlite/main.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/libcephsqlite/main.cc b/src/test/libcephsqlite/main.cc index 28ab88e7cb9..40bab659cf3 100644 --- a/src/test/libcephsqlite/main.cc +++ b/src/test/libcephsqlite/main.cc @@ -1093,8 +1093,7 @@ out: int main(int argc, char **argv) { - std::vector<const char*> args; - argv_to_vec(argc, (const char **)argv, args); + auto args = argv_to_vec(argc, argv); std::string conf_file_list; std::string cluster; |