fix some copmpiler warnings for USEMMAP
MODIFY
instrumentation/afl-compiler-rt.o.c
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);

fix some copmpiler warnings for USEMMAP