summaryrefslogtreecommitdiffstats
path: root/src/common/strtol.h
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2021-07-26 09:00:40 +0200
committerKefu Chai <kchai@redhat.com>2021-07-26 14:12:17 +0200
commit650a0c936300163344486e08226b3e4ae87fcf7f (patch)
tree8a997dd46e719b0d31b4071b23d511cd2451a94b /src/common/strtol.h
parentcommon, mon: use strict_si_cast<>(std::string_view,..) (diff)
downloadceph-650a0c936300163344486e08226b3e4ae87fcf7f.tar.xz
ceph-650a0c936300163344486e08226b3e4ae87fcf7f.zip
common/strtol: drop strict_strto*(const char*,..)
they are but proxies to strict_strto*(string_view, ...). and their callers can just call the latter without any change. so drop these proxies. Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/common/strtol.h')
-rw-r--r--src/common/strtol.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/strtol.h b/src/common/strtol.h
index 91d2fac9f07..cdcac262e7a 100644
--- a/src/common/strtol.h
+++ b/src/common/strtol.h
@@ -72,14 +72,12 @@ auto consume(std::string_view& s, int base = 10)
bool strict_strtob(const char* str, std::string *err);
long long strict_strtoll(std::string_view str, int base, std::string *err);
-long long strict_strtoll(const char *str, int base, std::string *err);
int strict_strtol(std::string_view str, int base, std::string *err);
-int strict_strtol(const char *str, int base, std::string *err);
-double strict_strtod(const char *str, std::string *err);
+double strict_strtod(std::string_view str, std::string *err);
-float strict_strtof(const char *str, std::string *err);
+float strict_strtof(std::string_view str, std::string *err);
uint64_t strict_iecstrtoll(const char *str, std::string *err);