summaryrefslogtreecommitdiffstats
path: root/src/tools/rbd_mirror/main.cc
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2021-08-11 05:41:42 +0200
committerKefu Chai <kchai@redhat.com>2021-08-13 03:33:14 +0200
commit7bc3e11ff9b4e2fc30e4447c057b411ddd49d2ab (patch)
tree5a416acc38309b561a20c1ce7b4fc3d3fc2a8ad2 /src/tools/rbd_mirror/main.cc
parenttools/rbd: build without "using namespace std" (diff)
downloadceph-7bc3e11ff9b4e2fc30e4447c057b411ddd49d2ab.tar.xz
ceph-7bc3e11ff9b4e2fc30e4447c057b411ddd49d2ab.zip
tools/rbd_mirror: build without "using namespace std"
* add "std::" prefix in headers * add "using" declarations in .cc files. so we don't rely on "using namespace std" in one or more included headers. Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to '')
-rw-r--r--src/tools/rbd_mirror/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rbd_mirror/main.cc b/src/tools/rbd_mirror/main.cc
index ab350a014cf..78f3a5c2eb6 100644
--- a/src/tools/rbd_mirror/main.cc
+++ b/src/tools/rbd_mirror/main.cc
@@ -37,7 +37,7 @@ int main(int argc, const char **argv)
std::vector<const char*> args;
argv_to_vec(argc, argv, args);
if (args.empty()) {
- cerr << argv[0] << ": -h or --help for usage" << std::endl;
+ std::cerr << argv[0] << ": -h or --help for usage" << std::endl;
exit(1);
}
if (ceph_argparse_need_usage(args)) {