aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/sysstat.cpp
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/system/sysstat.cpp
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
downloadydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/sysstat.cpp')
-rw-r--r--util/system/sysstat.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/sysstat.cpp b/util/system/sysstat.cpp
index 3189905646..db3338b02e 100644
--- a/util/system/sysstat.cpp
+++ b/util/system/sysstat.cpp
@@ -2,8 +2,8 @@
#ifdef _win_
- #include "winint.h"
- #include <errno.h>
+ #include "winint.h"
+ #include <errno.h>
int Chmod(const char* fname, int mode) {
if (!fname) {
@@ -11,7 +11,7 @@ int Chmod(const char* fname, int mode) {
return -1;
}
ui32 fAttr = ::GetFileAttributesA(fname);
- if (fAttr == 0xffffffff)
+ if (fAttr == 0xffffffff)
return -1;
if (mode & _S_IWRITE) {
fAttr &= ~FILE_ATTRIBUTE_READONLY;
@@ -30,7 +30,7 @@ int Mkdir(const char* path, int /*mode*/) {
errno = EINVAL;
return -1;
}
- if (!CreateDirectoryA(path, (LPSECURITY_ATTRIBUTES) nullptr)) {
+ if (!CreateDirectoryA(path, (LPSECURITY_ATTRIBUTES) nullptr)) {
ui32 errCode = GetLastError();
if (errCode == ERROR_ALREADY_EXISTS) {
errno = EEXIST;