about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--include/debug.h9
-rw-r--r--include/list.h2
-rw-r--r--src/afl-common.c2
3 files changed, 11 insertions, 2 deletions
diff --git a/include/debug.h b/include/debug.h
index ff2845f9..8824ff6b 100644
--- a/include/debug.h
+++ b/include/debug.h
@@ -28,6 +28,15 @@
 #include "types.h"
 #include "config.h"
 
+/* __FUNCTION__ is non-iso */
+#ifndef __FUNCTION__
+#ifdef __func__
+#define __FUNCTION__ __func__
+#else
+#define __FUNCTION__ "func_unknown"
+#endif
+#endif
+
 /*******************
  * Terminal colors *
  *******************/
diff --git a/include/list.h b/include/list.h
index e93b4e8f..bb985c4f 100644
--- a/include/list.h
+++ b/include/list.h
@@ -50,7 +50,7 @@ typedef struct list_element {
 typedef struct list {
 
   element_t element_prealloc_buf[LIST_PREALLOC_SIZE];
-  u32       element_prealloc_count;
+  s32       element_prealloc_count;
 
 } list_t;
 
diff --git a/src/afl-common.c b/src/afl-common.c
index 12b0355e..825cd827 100644
--- a/src/afl-common.c
+++ b/src/afl-common.c
@@ -140,7 +140,7 @@ void detect_file_args(char **argv, u8 *prog_in, u8 *use_stdin) {
 
 char **argv_cpy_dup(int argc, char **argv) {
 
-  u32 i = 0;
+  int i = 0;
 
   char **ret = ck_alloc((argc + 1) * sizeof(char *));