]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd cli: remove erroneous arg for ceph_argparse_witharg
authorDmitry Yatsushkevich <dyatsushkevich@mirantis.com>
Wed, 25 Mar 2015 20:42:06 +0000 (13:42 -0700)
committerDmitry Yatsushkevich <dyatsushkevich@mirantis.com>
Tue, 31 Mar 2015 19:13:55 +0000 (12:13 -0700)
commitb491c820bb42a6abbe3126eb26d356d37049f053
tree532db8defceae67af5dfef718d278b0f16304b3a
parentba12448c80ab725ee3227cb877389f9ee0cc5aa6
rbd cli: remove erroneous arg for ceph_argparse_witharg

Remove erroneous arg for ceph_argparse_witharg call when '--io-pattern' parsed:
the name look up will point the compiler to bool ceph_argparse_witharg(
    std::vector<const char*> &args,
    std::vector<const char*>::iterator &i, std::string *ret, ...) when compiler
is resolving this function call. The &err argument will be wrongly interpreted
as a char * variable to be compared with the argument name pointed by i.

Signed-off-by: Dmitry Yatsushkevich <dyatsushkevich@mirantis.com>
src/rbd.cc