about summary refs log tree commit diff
path: root/instrumentation/afl-llvm-dict2file.so.cc
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-10-18 20:53:54 +0200
committervanhauser-thc <vh@thc.org>2021-10-18 20:53:54 +0200
commitbb8a4d71da8f2b748a78ccc4416df6bffb393d80 (patch)
tree157a08bdf31e159bd83d137cc157fb204cc34117 /instrumentation/afl-llvm-dict2file.so.cc
parentfd43daee6a2146e95059b7ea670c6bf24b3704ed (diff)
downloadafl++-bb8a4d71da8f2b748a78ccc4416df6bffb393d80.tar.gz
format and remove warning
Diffstat (limited to 'instrumentation/afl-llvm-dict2file.so.cc')
-rw-r--r--instrumentation/afl-llvm-dict2file.so.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/instrumentation/afl-llvm-dict2file.so.cc b/instrumentation/afl-llvm-dict2file.so.cc
index c4ad1783..0a3e74b9 100644
--- a/instrumentation/afl-llvm-dict2file.so.cc
+++ b/instrumentation/afl-llvm-dict2file.so.cc
@@ -65,8 +65,10 @@ using namespace llvm;
 namespace {
 
 class AFLdict2filePass : public ModulePass {
+
   std::ofstream of;
-  void dict2file(u8 *, u32);
+  void          dict2file(u8 *, u32);
+
  public:
   static char ID;
 
@@ -147,8 +149,7 @@ bool AFLdict2filePass::runOnModule(Module &M) {
     FATAL("AFL_LLVM_DICT2FILE is not set to an absolute path: %s", ptr);
 
   of.open(ptr, std::ofstream::out | std::ofstream::app);
-  if (!of.is_open())
-    PFATAL("Could not open/create %s.", ptr);
+  if (!of.is_open()) PFATAL("Could not open/create %s.", ptr);
 
   /* Instrument all the things! */