From 3aed3dfa32c7ff41328b68a83f4d3ba5576d2068 Mon Sep 17 00:00:00 2001
From: Anh <zenpoems@gmail.com>
Date: Thu, 10 Jan 2019 13:44:30 -0800
Subject: [PATCH] Fix compilation error

---
 src/libzafl.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/libzafl.c b/src/libzafl.c
index cdcceb0..dccfd2d 100644
--- a/src/libzafl.c
+++ b/src/libzafl.c
@@ -93,7 +93,7 @@ void zafl_initAflForkServer()
 
 	zafl_setupSharedMemory();
 	if (debug)
-		printf("libzafl: map is at 0x%x\n", zafl_trace_map);
+		printf("libzafl: map is at 0x%p\n", zafl_trace_map);
 
 	if (!zafl_trace_map) {
 		zafl_trace_map = (u8*)malloc(MAP_SIZE);
@@ -148,16 +148,13 @@ void zafl_bbInstrument(unsigned short id) {
 
 void zafl_dumpTracemap()
 {
+	int i;
 	if (!debug) return;
-	PRINT_DEBUG("zafl_dumpTracemap(): enter\n");
 	if (!zafl_trace_map) return;
 
-	printf("tracemap at: 0x%x\n", zafl_trace_map);
-
-	for (int i = 0; i < 0xFFFF; ++i)
+	for (i = 0; i < 0xFFFF; ++i)
 	{
 		if (zafl_trace_map[i]!=0)
 			printf("%x:%d\n",i, zafl_trace_map[i]); 
 	}
-	PRINT_DEBUG("zafl_dumpTracemap(): exit\n");
 }
-- 
GitLab