aboutsummaryrefslogtreecommitdiffstats
path: root/util/draft/ip.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/draft/ip.h
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 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 550bdbf8e5..eb947cd2cd 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 {