]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/ceph_conf: replace exit(n) with "return n"
authorKefu Chai <kchai@redhat.com>
Tue, 16 Jul 2019 03:49:32 +0000 (11:49 +0800)
committerBrad Hubbard <bhubbard@redhat.com>
Mon, 14 Dec 2020 02:08:05 +0000 (12:08 +1000)
commit516a6fd095f54d57ecd77650840345d464009631
tree637cb761d1d6411b96dd8ccc090a01a83c31eaf4
parent339ef6a306802b0f712464beeaae57329140d15f
tools/ceph_conf: replace exit(n) with "return n"

a step to the leak-free `main()`, as we use a smart pointer to manage
the lifecycle of `cct`, it'd be better to let the RAII to do its job.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 3aef54b214754713e9eaf536ca0fdb95f60e8ebe)
src/tools/ceph_conf.cc