]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/strtol: fix strict_strtoll() so it accepts hex starting with 0x 21521/head
authorKefu Chai <kchai@redhat.com>
Thu, 19 Apr 2018 11:19:30 +0000 (19:19 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 19 Apr 2018 15:35:31 +0000 (23:35 +0800)
commitc5e6f6b0a4e088b458e9a303a3bb0cf16fd036fb
treef96dd18c99a4839473fd5a483bc8f83f45c9557f
parent2efe9daf77669db105b63cecf434a5e8d9763211
common/strtol: fix strict_strtoll() so it accepts hex starting with 0x

- simplify the error handling of strtoll().
- only instantiate ostringstream when handling errors.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/strtol.cc
src/test/cli/monmaptool/feature-set-unset-list.t