aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/interface.cpp
diff options
context:
space:
mode:
authoralex-sh <alex-sh@yandex-team.ru>2022-02-10 16:50:03 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:03 +0300
commit88ee78b1a163eaddee7e880ac73943456040fce0 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/network/interface.cpp
parent3196904c9f5bf7aff7374eeadcb0671589581f61 (diff)
downloadydb-88ee78b1a163eaddee7e880ac73943456040fce0.tar.gz
Restoring authorship annotation for <alex-sh@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/network/interface.cpp')
-rw-r--r--util/network/interface.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/network/interface.cpp b/util/network/interface.cpp
index ba22e9e2a9..256776c6d3 100644
--- a/util/network/interface.cpp
+++ b/util/network/interface.cpp
@@ -41,17 +41,17 @@ namespace NAddr {
for (IP_ADAPTER_UNICAST_ADDRESS* addr = ptr->FirstUnicastAddress; addr != 0; addr = addr->Next) {
sockaddr* a = (sockaddr*)addr->Address.lpSockaddr;
if (IsInetAddress(a)) {
- TNetworkInterface networkInterface;
+ TNetworkInterface networkInterface;
// Not very efficient but straightforward
for (size_t i = 0; ptr->FriendlyName[i] != 0; i++) {
CHAR w = ptr->FriendlyName[i];
char c = (w < 0x80) ? char(w) : '?';
- networkInterface.Name.append(1, c);
+ networkInterface.Name.append(1, c);
}
- networkInterface.Address = new TOpaqueAddr(a);
- result.push_back(networkInterface);
+ networkInterface.Address = new TOpaqueAddr(a);
+ result.push_back(networkInterface);
}
}
}