]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
config: parse_argv fix
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 30 Mar 2011 23:17:48 +0000 (16:17 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 30 Mar 2011 23:36:20 +0000 (16:36 -0700)
commit887a01f62cc01d48db99979cc6c78081465926a9
tree5294a886d6c6022b4fe4ddee90b66482e3e70e68
parent5837a255ad6b50094190b49a16e284a1a50f2922
config: parse_argv fix

md_config_t::parse_argv: fold md_config_t::parse_argv_part2 into
parse_argv. Fix brokenness introduced by the std::string switchover.

OPTION macro: move single-character options out of the OPTION macro and
into config.cc

Fix ceph_argparse_witharg / ceph_argparse_flag uses to include a
trailing (char*)NULL, to ensure that we terminate with a pointer rather
than a 32-bit int.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/common/ceph_argparse.cc
src/common/config.cc
src/common/config.h