]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph_argparse: generalize ceph_argparse_with* routines 4208/head
authorDmitry Yatsushkevich <dyatsushkevich@mirantis.com>
Fri, 27 Mar 2015 22:34:24 +0000 (15:34 -0700)
committerDmitry Yatsushkevich <dyatsushkevich@mirantis.com>
Tue, 31 Mar 2015 19:13:55 +0000 (12:13 -0700)
commitaa77a4661c5e486b181c6246ac65a6fe322ebfb1
tree5d2054094d056ae56ae7d8ef30d7f1a4c0068578
parentb491c820bb42a6abbe3126eb26d356d37049f053
ceph_argparse: generalize ceph_argparse_with* routines

Remove code duplication by generalizing ceph_argparse_with{int,float,longlong}
routines - make one template function for those cases.

Signed-off-by: Dmitry Yatsushkevich <dyatsushkevich@mirantis.com>
src/common/ceph_argparse.cc
src/common/ceph_argparse.h
src/rbd.cc
src/rbd_replay/rbd-replay.cc
src/rgw/rgw_admin.cc
src/test/ceph_argparse.cc
src/test/osdc/object_cacher_stress.cc
src/tools/crushtool.cc
src/tools/osdmaptool.cc