aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/error.cpp
diff options
context:
space:
mode:
authordenplusplus <denplusplus@yandex-team.ru>2022-02-10 16:47:34 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:34 +0300
commit57c20d143e8a438cd76b9fdc3ca2e8ee3ac1f32a (patch)
treecc63639f8e502db19a82c20e2861c6d1edbf9fea /util/system/error.cpp
parent464ba3814a83db4f2d5327393b0b6eaf0c86bfd7 (diff)
downloadydb-57c20d143e8a438cd76b9fdc3ca2e8ee3ac1f32a.tar.gz
Restoring authorship annotation for <denplusplus@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/error.cpp')
-rw-r--r--util/system/error.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/error.cpp b/util/system/error.cpp
index f778ec42cb..0cbe9fe63e 100644
--- a/util/system/error.cpp
+++ b/util/system/error.cpp
@@ -16,14 +16,14 @@
#include <unistd.h>
#endif
-void ClearLastSystemError() {
-#if defined(_win_)
- SetLastError(0);
+void ClearLastSystemError() {
+#if defined(_win_)
+ SetLastError(0);
#else
errno = 0;
-#endif
-}
-
+#endif
+}
+
int LastSystemError() {
#if defined(_win_)
int ret = GetLastError();