about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-12-08 23:26:28 +0100
committerhexcoder- <heiko@hexco.de>2020-12-08 23:26:28 +0100
commit9534bb87b1e2c428024879ef4de7337f8fccda5a (patch)
treee39e3426be49def1efddf871ae395fd327481a37
parentad29eef2712f8d0b69c1acd79c6a5dfb4e2cc7f8 (diff)
downloadafl++-9534bb87b1e2c428024879ef4de7337f8fccda5a.tar.gz
fix some copmpiler warnings for USEMMAP
-rw-r--r--instrumentation/afl-compiler-rt.o.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c
index 32e4da85..c29861e6 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -176,7 +176,6 @@ static void __afl_map_shm_fuzz() {
 #ifdef USEMMAP
     const char *   shm_file_path = id_str;
     int            shm_fd = -1;
-    unsigned char *shm_base = NULL;
 
     /* create the shared memory segment as if it was a file */
     shm_fd = shm_open(shm_file_path, O_RDWR, 0600);
@@ -417,7 +416,7 @@ static void __afl_map_shm(void) {
 #ifdef USEMMAP
     const char *   shm_file_path = id_str;
     int            shm_fd = -1;
-    unsigned char *shm_base = NULL;
+    struct cmp_map *shm_base = NULL;
 
     /* create the shared memory segment as if it was a file */
     shm_fd = shm_open(shm_file_path, O_RDWR, 0600);