]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: improve argv_to_vec() to accept both const and non-const argv
authorRonen Friedman <rfriedma@redhat.com>
Thu, 19 Aug 2021 12:59:06 +0000 (12:59 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 19 Aug 2021 13:40:48 +0000 (16:40 +0300)
commit80775262c570c4a9cdf9626e55a262189d206fcf
tree131c1c8951e9c72674d4df9105d8810b0b2c287a
parenteab4b5856808c6dee3e3b9246eb309bc7702802b
common: improve argv_to_vec() to accept both const and non-const argv

Some of Ceph main()'s use the standard 'char** av', while others use
'const char**'. The modified signature of argv_to_vec() handles both,
allowing us to remove the existing const-cast used by some executables.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/common/ceph_argparse.cc
src/common/ceph_argparse.h