about summary refs log tree commit diff
path: root/utils/libdislocator/libdislocator.so.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2022-04-18 13:11:19 +0200
committervanhauser-thc <vh@thc.org>2022-04-18 13:14:20 +0200
commit1d00bde6c508ed86366e4a7d3730e6d1203bcb60 (patch)
tree45fe2f0209eb89b5231ae01c922f622306518aa0 /utils/libdislocator/libdislocator.so.c
parentb1da7500b2ef915887322d4a1903fe981d49acb5 (diff)
downloadafl++-1d00bde6c508ed86366e4a7d3730e6d1203bcb60.tar.gz
code format
Diffstat (limited to 'utils/libdislocator/libdislocator.so.c')
-rw-r--r--utils/libdislocator/libdislocator.so.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/utils/libdislocator/libdislocator.so.c b/utils/libdislocator/libdislocator.so.c
index 72fafa4b..bd08a678 100644
--- a/utils/libdislocator/libdislocator.so.c
+++ b/utils/libdislocator/libdislocator.so.c
@@ -257,16 +257,17 @@ static void *__dislocator_alloc(size_t len) {
   }
 
 #if defined(USENAMEDPAGE)
-#if defined(__linux__)
+  #if defined(__linux__)
   // in the /proc/<pid>/maps file, the anonymous page appears as
   // `<start>-<end> ---p 00000000 00:00 0 [anon:libdislocator]`
-  if (prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME,
-    (unsigned long)ret, tlen, (unsigned long)"libdislocator") < 0) {
+  if (prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, (unsigned long)ret, tlen,
+            (unsigned long)"libdislocator") < 0) {
 
     DEBUGF("prctl() failed");
 
   }
-#endif
+
+  #endif
 #endif
 
   /* Set PROT_NONE on the last page. */