]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: force all exiting paths through main()/return
authorDan Mick <dan.mick@inktank.com>
Mon, 20 Aug 2012 22:02:57 +0000 (15:02 -0700)
committerDan Mick <dan.mick@inktank.com>
Thu, 23 Aug 2012 20:03:00 +0000 (13:03 -0700)
commitfed8aea662bf919f35a5a72e4e2a2a685af2b2ed
tree7535eccf27bbf5f382a71b7dd9b240fa01c1202a
parent9f9dfd9c18ffd0649a1e51962e0a70261adcb690
rbd: force all exiting paths through main()/return
This properly destroys objects.  In the process, remove usage_exit();
also kill error-handling in set_conf_param (never relevant for rbd.cc,
and if you call it with both pointers NULL, well...)
Also switch to EXIT_FAILURE for consistency.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Fixes: #2948
src/rbd.cc