about summary refs log tree commit diff
path: root/include/afl-prealloc.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-06-29 01:23:30 +0200
committervan Hauser <vh@thc.org>2020-06-29 01:23:30 +0200
commit3a0c91b86205bfebb8ec7e62a2e7b0bfcec2e407 (patch)
tree4cb5e6e59f24f488e58fbb1aced2dbc0e6550c15 /include/afl-prealloc.h
parente5e485fcdb039fc77842b0753a4adf42d6063388 (diff)
downloadafl++-3a0c91b86205bfebb8ec7e62a2e7b0bfcec2e407.tar.gz
fix unittest
Diffstat (limited to 'include/afl-prealloc.h')
-rw-r--r--include/afl-prealloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/afl-prealloc.h b/include/afl-prealloc.h
index fa6c9b70..edf69a67 100644
--- a/include/afl-prealloc.h
+++ b/include/afl-prealloc.h
@@ -60,7 +60,7 @@ typedef enum prealloc_status {
                                                                                \
     if ((prealloc_counter) >= (prealloc_size)) {                               \
                                                                                \
-      el_ptr = (element_t *)malloc(sizeof(*el_ptr));                           \
+      el_ptr = (void *)malloc(sizeof(*el_ptr));                                \
       if (!el_ptr) { FATAL("error in list.h -> out of memory for element!"); } \
       el_ptr->pre_status = PRE_STATUS_MALLOC;                                  \
                                                                                \