aboutsummaryrefslogtreecommitdiffstats
path: root/util/draft/ip.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /util/draft/ip.h
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/draft/ip.h')
-rw-r--r--util/draft/ip.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/draft/ip.h b/util/draft/ip.h
index eb947cd2cd..550bdbf8e5 100644
--- a/util/draft/ip.h
+++ b/util/draft/ip.h
@@ -80,10 +80,10 @@ static inline char* Ip6ToString(const TIp6& ip, char* buf, size_t len) {
return buf;
}
-static inline TString Ip6ToString(const TIp6& ip) {
+static inline TString Ip6ToString(const TIp6& ip) {
char buf[INET6_ADDRSTRLEN];
- return TString(Ip6ToString(ip, buf, sizeof(buf)));
+ return TString(Ip6ToString(ip, buf, sizeof(buf)));
}
template <>
@@ -106,7 +106,7 @@ static inline TIp4Or6 Ip4Or6FromString(const char* ipStr) {
ythrow TSystemError() << "Failed to convert (" << ipStr << ") to ipv4 or ipv6 address";
}
-static inline TString Ip4Or6ToString(const TIp4Or6& ip) {
+static inline TString Ip4Or6ToString(const TIp4Or6& ip) {
if (std::holds_alternative<TIp6>(ip)) {
return Ip6ToString(std::get<TIp6>(ip));
} else {