about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-12-11 11:21:28 +0100
committervan Hauser <vh@thc.org>2020-12-11 11:21:28 +0100
commitcc781e44f36d716f05da13bf760154a7810bfe43 (patch)
treec7ec08c39d3153ab3de1602fbda0739dd32dd37e
parent2bf68a0bf45fb2bb3bc0f574f20959a62c9f8239 (diff)
downloadafl++-cc781e44f36d716f05da13bf760154a7810bfe43.tar.gz
code format
-rw-r--r--src/afl-cc.c8
-rw-r--r--src/afl-fuzz-queue.c13
-rw-r--r--src/afl-fuzz-state.c2
3 files changed, 13 insertions, 10 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c
index 37cfc7c8..c43ac2c1 100644
--- a/src/afl-cc.c
+++ b/src/afl-cc.c
@@ -891,9 +891,9 @@ static void edit_params(u32 argc, char **argv, char **envp) {
           alloc_printf("-Wl,--dynamic-list=%s/dynamic_list.txt", obj_path);
   #endif
 
-#ifdef USEMMAP
+  #ifdef USEMMAP
     cc_params[cc_par_cnt++] = "-lrt";
-#endif
+  #endif
 
   }
 
@@ -1467,9 +1467,9 @@ int main(int argc, char **argv, char **envp) {
 #endif
 
 #ifdef USEMMAP
-  SAYF("Compiled with shm_open support (adds -lrt when linking).\n");
+    SAYF("Compiled with shm_open support (adds -lrt when linking).\n");
 #else
-  SAYF("Compiled with shmat support.\n");
+    SAYF("Compiled with shmat support.\n");
 #endif
     SAYF("\n");
 
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c
index d74c07a1..54afa17c 100644
--- a/src/afl-fuzz-queue.c
+++ b/src/afl-fuzz-queue.c
@@ -46,14 +46,17 @@ double compute_weight(afl_state_t *afl, struct queue_entry *q,
                       double avg_exec_us, double avg_bitmap_size) {
 
   u32 hits;
-  
+
   if (likely(afl->schedule >= FAST && afl->schedule <= RARE)) {
-  
+
     hits = afl->n_fuzz[q->n_fuzz_entry];
     if (hits == 0) { hits = 1; }
-   
-  } else { hits = 1; }
-   
+
+  } else {
+
+    hits = 1;
+
+  }
 
   double weight = 1.0;
   weight *= avg_exec_us / q->exec_us;
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c
index 36da2730..9c51a3ef 100644
--- a/src/afl-fuzz-state.c
+++ b/src/afl-fuzz-state.c
@@ -87,7 +87,7 @@ void afl_state_init(afl_state_t *afl, uint32_t map_size) {
   afl->w_end = 0.3;
   afl->g_max = 5000;
   afl->period_pilot_tmp = 5000.0;
-  afl->schedule = FAST   ;              /* Power schedule (default: FAST)   */
+  afl->schedule = FAST;                 /* Power schedule (default: FAST)   */
   afl->havoc_max_mult = HAVOC_MAX_MULT;
 
   afl->clear_screen = 1;                /* Window resized?                  */