]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/common/get_command_descriptions.cc
import quincy beta 17.1.0
[ceph.git] / ceph / src / test / common / get_command_descriptions.cc
index aef74066a03237203db0854979adbd2e89d9e22e..88bc181912faa3712b0fa1dbfcd414ed914de187 100644 (file)
@@ -25,6 +25,8 @@
 #include "common/ceph_argparse.h"
 #include "global/global_init.h"
 
+using namespace std;
+
 static void usage(ostream &out)
 {
   out << "usage: get_command_descriptions [options ...]" << std::endl;
@@ -95,8 +97,7 @@ static void pull585()
 }
 
 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,