aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/error.cpp
diff options
context:
space:
mode:
authorivanmorozov <ivanmorozov@yandex-team.ru>2022-02-10 16:47:33 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:33 +0300
commitcba5d9a444e2cfe105f55ccda66cd21d50440017 (patch)
tree79983e83d1a91aebeb1999338090eec69e24cc33 /util/system/error.cpp
parenteb540cc7a103419462d0cc870ca403966e2194c6 (diff)
downloadydb-cba5d9a444e2cfe105f55ccda66cd21d50440017.tar.gz
Restoring authorship annotation for <ivanmorozov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/error.cpp')
-rw-r--r--util/system/error.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/util/system/error.cpp b/util/system/error.cpp
index f778ec42cbe..f02b3e800f8 100644
--- a/util/system/error.cpp
+++ b/util/system/error.cpp
@@ -26,19 +26,19 @@ void ClearLastSystemError() {
int LastSystemError() {
#if defined(_win_)
- int ret = GetLastError();
+ int ret = GetLastError();
- if (ret)
+ if (ret)
return ret;
- ret = WSAGetLastError();
-
- if (ret)
- return ret;
- // when descriptors number are over maximum, errno set in this variable
- ret = *(_errno());
- return ret;
-
+ ret = WSAGetLastError();
+
+ if (ret)
+ return ret;
+ // when descriptors number are over maximum, errno set in this variable
+ ret = *(_errno());
+ return ret;
+
#else
return errno;
#endif