summaryrefslogtreecommitdiffstats
path: root/util/system/protect.cpp
diff options
context:
space:
mode:
authorpaxakor <[email protected]>2022-02-10 16:47:32 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:32 +0300
commit7fdbed62e54b804e2c12b86a2c2bab12f61065df (patch)
tree180a6ae33c1213a60fb42829eccb42cc00fc6955 /util/system/protect.cpp
parent7199613d295246a07c2f7b331fbb3128936039dc (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/protect.cpp')
-rw-r--r--util/system/protect.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/protect.cpp b/util/system/protect.cpp
index bbb8d410dfb..777808fb381 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;