#define dout_context g_ceph_context
#define dout_subsys ceph_subsys_rgw
+using namespace std;
+
namespace {
using namespace rgw;
friend ostream& operator<<(ostream& os, const obj_rec& rec);
};
- ostream& operator<<(ostream& os, const obj_rec& rec)
+ [[maybe_unused]] ostream& operator<<(ostream& os, const obj_rec& rec)
{
RGWFileHandle* rgw_fh = rec.rgw_fh;
if (rgw_fh) {
int main(int argc, char *argv[])
{
- char *v{nullptr};
- string val;
- vector<const char*> args;
-
- argv_to_vec(argc, const_cast<const char**>(argv), args);
+ auto args = argv_to_vec(argc, argv);
env_to_vec(args);
- v = getenv("AWS_ACCESS_KEY_ID");
+ char* v = getenv("AWS_ACCESS_KEY_ID");
if (v) {
access_key = v;
}
secret_key = v;
}
+ string val;
for (auto arg_iter = args.begin(); arg_iter != args.end();) {
if (ceph_argparse_witharg(args, arg_iter, &val, "--access",
(char*) nullptr)) {