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/rgw/rgw_es_main.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/rgw/rgw_es_main.cc')
-rw-r--r-- | src/rgw/rgw_es_main.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rgw/rgw_es_main.cc b/src/rgw/rgw_es_main.cc index e503d4a6857..6cfbc935292 100644 --- a/src/rgw/rgw_es_main.cc +++ b/src/rgw/rgw_es_main.cc @@ -16,8 +16,7 @@ using namespace std; int main(int argc, char *argv[]) { - vector<const char*> args; - argv_to_vec(argc, (const char **)argv, args); + auto args = argv_to_vec(argc, argv); auto cct = global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY, 0); |