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
commit69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/network/socket.cpp
parent948fd24d47d4b3b7815aaef1686aea00ef3f4288 (diff)
downloadydb-69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f.tar.gz
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 2 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 44d04424bf..4f6e804346 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);