diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:25 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:25 +0300 |
commit | 344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/system/hostname.cpp | |
parent | 706b83ed7de5a473436620367af31fc0ceecde07 (diff) | |
download | ydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/hostname.cpp')
-rw-r--r-- | util/system/hostname.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/hostname.cpp b/util/system/hostname.cpp index 397f64bae9..386f646d6b 100644 --- a/util/system/hostname.cpp +++ b/util/system/hostname.cpp @@ -29,7 +29,7 @@ namespace { HostName = hostNameBuf.Data(); } - TString HostName; + TString HostName; }; struct TFQDNHostNameHolder { @@ -60,11 +60,11 @@ namespace { FQDNHostName.to_lower(); } - TString FQDNHostName; + TString FQDNHostName; }; } -const TString& HostName() { +const TString& HostName() { return (Singleton<THostNameHolder>())->HostName; } @@ -72,7 +72,7 @@ const char* GetHostName() { return HostName().data(); } -const TString& FQDNHostName() { +const TString& FQDNHostName() { return (Singleton<TFQDNHostNameHolder>())->FQDNHostName; } @@ -80,8 +80,8 @@ const char* GetFQDNHostName() { return FQDNHostName().data(); } -bool IsFQDN(const TString& name) { - TString absName = name; +bool IsFQDN(const TString& name) { + TString absName = name; if (!absName.EndsWith('.')) { absName.append("."); } |