aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/socket.cpp
diff options
context:
space:
mode:
authoraosipenko <aosipenko@yandex-team.ru>2022-02-10 16:48:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:08 +0300
commit948fd24d47d4b3b7815aaef1686aea00ef3f4288 (patch)
tree8ad4c39c2a5f8b341bc02e3b0c5e8f26c40373cb /util/network/socket.cpp
parentd2eb4aae699fa2f6901bf32d22eec019c8f29838 (diff)
downloadydb-948fd24d47d4b3b7815aaef1686aea00ef3f4288.tar.gz
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/network/socket.cpp')
-rw-r--r--util/network/socket.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/network/socket.cpp b/util/network/socket.cpp
index 4f6e804346..44d04424bf 100644
--- a/util/network/socket.cpp
+++ b/util/network/socket.cpp
@@ -713,7 +713,7 @@ static inline ssize_t DoSendV(SOCKET fd, const struct iovec* iov, size_t count)
} while (ret == -1 && errno == EINTR);
if (ret < 0) {
- return -LastSystemError();
+ return -LastSystemError();
}
return ret;
@@ -1092,11 +1092,11 @@ struct addrinfo* TNetworkAddress::Info() const noexcept {
TNetworkResolutionError::TNetworkResolutionError(int error) {
const char* errMsg = nullptr;
-#ifdef _win_
+#ifdef _win_
errMsg = LastSystemErrorText(error); // gai_strerror is not thread-safe on Windows
-#else
- errMsg = gai_strerror(error);
-#endif
+#else
+ errMsg = gai_strerror(error);
+#endif
(*this) << errMsg << "(" << error;
#if defined(_unix_)
@@ -1106,8 +1106,8 @@ TNetworkResolutionError::TNetworkResolutionError(int error) {
#endif
(*this) << "): ";
-}
-
+}
+
#if defined(_unix_)
static inline int GetFlags(int fd) {
const int ret = fcntl(fd, F_GETFL);