aboutsummaryrefslogtreecommitdiff
path: root/include/sharedmem.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-03-09 12:21:54 +0100
committervan Hauser <vh@thc.org>2020-03-09 12:21:54 +0100
commit988a32ced5ce08465940c985bb538c87d4c4b4e7 (patch)
tree1a8362bd269384c38ee2be0d8db92998a39f6445 /include/sharedmem.h
parent188a6f5ec58d776d2246baed9a66fdd56245bc28 (diff)
downloadafl++-988a32ced5ce08465940c985bb538c87d4c4b4e7.tar.gz
code-format
Diffstat (limited to 'include/sharedmem.h')
-rw-r--r--include/sharedmem.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/sharedmem.h b/include/sharedmem.h
index b90f7d87..9a7d9082 100644
--- a/include/sharedmem.h
+++ b/include/sharedmem.h
@@ -29,30 +29,30 @@
typedef struct sharedmem {
- //extern unsigned char *trace_bits;
+ // extern unsigned char *trace_bits;
- #ifdef USEMMAP
+#ifdef USEMMAP
/* ================ Proteas ================ */
- int g_shm_fd;
- char g_shm_file_path[L_tmpnam];
- /* ========================================= */
- #else
- s32 shm_id; /* ID of the SHM region */
+ int g_shm_fd;
+ char g_shm_file_path[L_tmpnam];
+/* ========================================= */
+#else
+ s32 shm_id; /* ID of the SHM region */
s32 cmplog_shm_id;
- #endif
+#endif
- u8 *map; /* shared memory region */
+ u8 *map; /* shared memory region */
- size_t size_alloc; /* actual allocated size */
- size_t size_used; /* in use by shmem app */
+ size_t size_alloc; /* actual allocated size */
+ size_t size_used; /* in use by shmem app */
int cmplog_mode;
struct cmp_map *cmp_map;
} sharedmem_t;
-u8 *afl_shm_init(sharedmem_t*, size_t, unsigned char dumb_mode);
-void afl_shm_deinit(sharedmem_t*);
+u8 * afl_shm_init(sharedmem_t *, size_t, unsigned char dumb_mode);
+void afl_shm_deinit(sharedmem_t *);
#endif