aboutsummaryrefslogtreecommitdiff
path: root/qemu_mode
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-09-03 20:43:11 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2019-09-03 20:43:11 +0200
commit7151651ea9a87f394cf7f44fcba56cd0d2b7eefa (patch)
tree18f302c2d67c07deacc5680d8920b7d5e221a8da /qemu_mode
parent0d7ecd4327aa4c67a0ddf1807847f9106db07be1 (diff)
downloadafl++-7151651ea9a87f394cf7f44fcba56cd0d2b7eefa.tar.gz
remove macro indentation from code-format
Diffstat (limited to 'qemu_mode')
-rw-r--r--qemu_mode/libcompcov/libcompcov.so.c2
-rw-r--r--qemu_mode/libcompcov/pmparser.h22
-rw-r--r--qemu_mode/patches/afl-qemu-common.h4
3 files changed, 14 insertions, 14 deletions
diff --git a/qemu_mode/libcompcov/libcompcov.so.c b/qemu_mode/libcompcov/libcompcov.so.c
index e758c034..9d61848e 100644
--- a/qemu_mode/libcompcov/libcompcov.so.c
+++ b/qemu_mode/libcompcov/libcompcov.so.c
@@ -33,7 +33,7 @@
#include "pmparser.h"
#ifndef __linux__
-# error "Sorry, this library is Linux-specific for now!"
+#error "Sorry, this library is Linux-specific for now!"
#endif /* !__linux__ */
/* Change this value to tune the compare coverage */
diff --git a/qemu_mode/libcompcov/pmparser.h b/qemu_mode/libcompcov/pmparser.h
index 91dfd032..e7fcf187 100644
--- a/qemu_mode/libcompcov/pmparser.h
+++ b/qemu_mode/libcompcov/pmparser.h
@@ -13,19 +13,19 @@ implied warranty.
*/
#ifndef H_PMPARSER
-# define H_PMPARSER
-# include <stdio.h>
-# include <stdlib.h>
-# include <unistd.h>
-# include <string.h>
-# include <sys/types.h>
-# include <sys/stat.h>
-# include <fcntl.h>
-# include <errno.h>
-# include <linux/limits.h>
+#define H_PMPARSER
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <errno.h>
+#include <linux/limits.h>
// maximum line length in a procmaps file
-# define PROCMAPS_LINE_MAX_LENGTH (PATH_MAX + 100)
+#define PROCMAPS_LINE_MAX_LENGTH (PATH_MAX + 100)
/**
* procmaps_struct
* @desc hold all the information about an area in the process's VM
diff --git a/qemu_mode/patches/afl-qemu-common.h b/qemu_mode/patches/afl-qemu-common.h
index c87bacb6..88c110b4 100644
--- a/qemu_mode/patches/afl-qemu-common.h
+++ b/qemu_mode/patches/afl-qemu-common.h
@@ -36,7 +36,7 @@
/* NeverZero */
#if (defined(__x86_64__) || defined(__i386__)) && defined(AFL_QEMU_NOT_ZERO)
-# define INC_AFL_AREA(loc) \
+#define INC_AFL_AREA(loc) \
asm volatile( \
"incb (%0, %1, 1)\n" \
"adcb $0, (%0, %1, 1)\n" \
@@ -44,6 +44,6 @@
: "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