about summary refs log tree commit diff
path: root/libtokencap/libtokencap.so.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-07-05 11:08:22 +0200
committervan Hauser <vh@thc.org>2020-07-05 11:08:22 +0200
commit95fd080ca17743717d38b8b002d30b09a5a16748 (patch)
tree8c1ed5975c39fbf4c2f5c77434b1d15597656f9b /libtokencap/libtokencap.so.c
parent7d0af01d8ba1627238407a97496c0d21faf7a8fe (diff)
downloadafl++-95fd080ca17743717d38b8b002d30b09a5a16748.tar.gz
code format
Diffstat (limited to 'libtokencap/libtokencap.so.c')
-rw-r--r--libtokencap/libtokencap.so.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libtokencap/libtokencap.so.c b/libtokencap/libtokencap.so.c
index baf9fae6..21bac082 100644
--- a/libtokencap/libtokencap.so.c
+++ b/libtokencap/libtokencap.so.c
@@ -254,10 +254,10 @@ static void __tokencap_load_mappings(void) {
 
 #elif defined __sun
   prmap_t *c, *map;
-  char path[PATH_MAX];
-  ssize_t r;
-  size_t hint;
-  int fd;
+  char     path[PATH_MAX];
+  ssize_t  r;
+  size_t   hint;
+  int      fd;
 
   snprintf(path, sizeof(path), "/proc/%ld/map", getpid());
   fd = open(path, O_RDONLY);
@@ -266,14 +266,14 @@ static void __tokencap_load_mappings(void) {
 
   __tokencap_ro_loaded = 1;
 
-  for (; (r = pread(fd, map, hint, 0)) == hint; ) {
-    
-    hint <<= 1;	  
+  for (; (r = pread(fd, map, hint, 0)) == hint;) {
+
+    hint <<= 1;
     map = realloc(map, hint);
 
   }
 
-  for (c = map; r > 0; c++ , r -= sizeof(prmap_t)) {
+  for (c = map; r > 0; c++, r -= sizeof(prmap_t)) {
 
     __tokencap_ro[__tokencap_ro_cnt].st = c->pr_vaddr;
     __tokencap_ro[__tokencap_ro_cnt].en = c->pr_vaddr + c->pr_size;