aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/sysstat.cpp
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/system/sysstat.cpp
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 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 db3338b02e..3189905646 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;