aboutsummaryrefslogtreecommitdiff
path: root/qbdi_mode/template.cpp
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-05-10 12:09:37 +0200
committervan Hauser <vh@thc.org>2020-05-10 12:09:37 +0200
commit30bfd44dfd9f442d5514a7100d76d1fd3d9deb74 (patch)
tree86d3b0b14103fd2bbc01f25c40e7d55694a4701b /qbdi_mode/template.cpp
parent26f8708fede1b15e6a93709d0baa2e5f481e082d (diff)
downloadafl++-30bfd44dfd9f442d5514a7100d76d1fd3d9deb74.tar.gz
indenting preprocessor directives breaks compilation and cant be fixed, reverting ... :-(
Diffstat (limited to 'qbdi_mode/template.cpp')
-rwxr-xr-xqbdi_mode/template.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/qbdi_mode/template.cpp b/qbdi_mode/template.cpp
index af360eb0..d4ac25e3 100755
--- a/qbdi_mode/template.cpp
+++ b/qbdi_mode/template.cpp
@@ -11,7 +11,7 @@
#include <dlfcn.h>
#ifdef __ANDROID__
-# include "../include/android-ashmem.h"
+#include "../include/android-ashmem.h"
#endif
#include <sys/ipc.h>
@@ -23,15 +23,15 @@
/* NeverZero */
#if (defined(__x86_64__) || defined(__i386__)) && defined(AFL_QEMU_NOT_ZERO)
-# define INC_AFL_AREA(loc) \
- asm volatile( \
- "incb (%0, %1, 1)\n" \
- "adcb $0, (%0, %1, 1)\n" \
- : /* no out */ \
- : "r"(afl_area_ptr), "r"(loc) \
- : "memory", "eax")
+#define INC_AFL_AREA(loc) \
+ asm volatile( \
+ "incb (%0, %1, 1)\n" \
+ "adcb $0, (%0, %1, 1)\n" \
+ : /* no out */ \
+ : "r"(afl_area_ptr), "r"(loc) \
+ : "memory", "eax")
#else
-# define INC_AFL_AREA(loc) afl_area_ptr[loc]++
+#define INC_AFL_AREA(loc) afl_area_ptr[loc]++
#endif
using namespace QBDI;