aboutsummaryrefslogtreecommitdiff
path: root/qbdi_mode/template.cpp
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-05-10 11:35:31 +0200
committervan Hauser <vh@thc.org>2020-05-10 11:35:31 +0200
commit26f8708fede1b15e6a93709d0baa2e5f481e082d (patch)
treed7884710e287db77b2067a489a374a7bfdb8b724 /qbdi_mode/template.cpp
parent3beec8d4fa037a8814b697d238727b729214e805 (diff)
downloadafl++-26f8708fede1b15e6a93709d0baa2e5f481e082d.tar.gz
fix warning, code format
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 d4ac25e3..af360eb0 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;