]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-objectstore-tool: Clean up error handling
authorDavid Zafman <dzafman@redhat.com>
Mon, 20 Apr 2015 23:10:18 +0000 (16:10 -0700)
committerDavid Zafman <dzafman@redhat.com>
Thu, 25 Feb 2016 20:50:21 +0000 (12:50 -0800)
commit7947f4f72f4bb6441ea5c353757d9ea3f464cff4
treec4b9f71b07b1e6d1821aa7b52a9091755b5a1d24
parent83de86e4e9dedc05fd65201715dadbd46074b7e0
ceph-objectstore-tool: Clean up error handling

Use negative errors throughout and positive error to specify exit status
cpp_strerror() handles negative errors
Clean up main() code to use local "ret"
Let end of main() decide how to treat the final value of "ret"

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit a50679a1a3313e4090bf24f6e4dda28e7d67d731)

Adjust back cherry-pick f237ed97228839a1b412ad213945f0343df05bf5
    Switched to use ret as in the original change from master
src/tools/ceph_objectstore_tool.cc