diff options
author | alex-sh <alex-sh@yandex-team.ru> | 2022-02-10 16:50:03 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:03 +0300 |
commit | 3196904c9f5bf7aff7374eeadcb0671589581f61 (patch) | |
tree | d13114a178799aeb203a4b3b43dd7fb0c4f6975f /util/network | |
parent | d154d11651ea533127249184148c3f023e2c6d0a (diff) | |
download | ydb-3196904c9f5bf7aff7374eeadcb0671589581f61.tar.gz |
Restoring authorship annotation for <alex-sh@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/network')
-rw-r--r-- | util/network/interface.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/network/interface.cpp b/util/network/interface.cpp index 256776c6d3..ba22e9e2a9 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); } } } |