]> 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>
Wed, 13 May 2015 20:09:13 +0000 (13:09 -0700)
commita50679a1a3313e4090bf24f6e4dda28e7d67d731
tree08e1abc4c4b2f9efbcf0d75badf9b5df5ef5cef7
parent548147b412eebe57861768e5fd66360c2582d2c6
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>
src/tools/ceph_objectstore_tool.cc