diff options
author | paxakor <paxakor@yandex-team.ru> | 2022-02-10 16:47:32 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:32 +0300 |
commit | 40d35c046ee3a61ee2a581f42499c5ce56ac589a (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/system/protect.cpp | |
parent | 7fdbed62e54b804e2c12b86a2c2bab12f61065df (diff) | |
download | ydb-40d35c046ee3a61ee2a581f42499c5ce56ac589a.tar.gz |
Restoring authorship annotation for <paxakor@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/protect.cpp')
-rw-r--r-- | util/system/protect.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/protect.cpp b/util/system/protect.cpp index 777808fb381..bbb8d410dfb 100644 --- a/util/system/protect.cpp +++ b/util/system/protect.cpp @@ -14,7 +14,7 @@ #include <Windows.h> #endif -static TString ModeToString(const EProtectMemory mode) { +static TString ModeToString(const EProtectMemory mode) { TString strMode; if (mode == PM_NONE) { return "PM_NONE"; @@ -32,8 +32,8 @@ static TString ModeToString(const EProtectMemory mode) { return strMode.substr(0, strMode.size() - 1); } -void ProtectMemory(void* addr, const size_t length, const EProtectMemory mode) { - Y_VERIFY(!(mode & ~(PM_READ | PM_WRITE | PM_EXEC)), "Invalid memory protection flag combination. "); +void ProtectMemory(void* addr, const size_t length, const EProtectMemory mode) { + Y_VERIFY(!(mode & ~(PM_READ | PM_WRITE | PM_EXEC)), "Invalid memory protection flag combination. "); #if defined(_unix_) || defined(_darwin_) int mpMode = PROT_NONE; @@ -61,7 +61,7 @@ void ProtectMemory(void* addr, const size_t length, const EProtectMemory mode) { * memory protection. As we don't know, what behavior is more correct, we choose * one of them. A discussion was here: REVIEW: 39725 */ - switch (mode.ToBaseType()) { + switch (mode.ToBaseType()) { case PM_READ: mpMode = PAGE_READONLY; break; |