about summary refs log tree commit diff
path: root/src/afl-showmap.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-02-09 09:43:33 +0100
committervan Hauser <vh@thc.org>2020-02-09 09:43:33 +0100
commite2ef2428986f45add509a6402de76678ca75b5da (patch)
tree264023d6e4f59fe622e6705c45fe8368a753892a /src/afl-showmap.c
parent49acc388dd9d318cfe7aa7766be7eea0daf2cbf1 (diff)
downloadafl++-e2ef2428986f45add509a6402de76678ca75b5da.tar.gz
fuzzer_stat eps is now overall not current, clang-format fixed to v8
Diffstat (limited to 'src/afl-showmap.c')
-rw-r--r--src/afl-showmap.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c
index 1686a750..1fd425a2 100644
--- a/src/afl-showmap.c
+++ b/src/afl-showmap.c
@@ -926,7 +926,7 @@ int main(int argc, char** argv) {
     int            done = 0;
     u8             infile[4096], outfile[4096];
 #if !defined(DT_REG)
-    struct stat    statbuf;
+    struct stat statbuf;
 #endif
 
     dev_null_fd = open("/dev/null", O_RDWR);
@@ -974,15 +974,14 @@ int main(int argc, char** argv) {
       if (dir_ent->d_name[0] == '.')
         continue;  // skip anything that starts with '.'
 
-#if defined(DT_REG) /* Posix and Solaris do not know d_type and DT_REG */
+#if defined(DT_REG)      /* Posix and Solaris do not know d_type and DT_REG */
       if (dir_ent->d_type != DT_REG) continue;  // only regular files
 #endif
 
       snprintf(infile, sizeof(infile), "%s/%s", in_dir, dir_ent->d_name);
 
-#if !defined(DT_REG) /* use stat() */
-      if (-1 == stat(infile, &statbuf)
-          || !S_ISREG(statbuf.st_mode)) continue;
+#if !defined(DT_REG)                                          /* use stat() */
+      if (-1 == stat(infile, &statbuf) || !S_ISREG(statbuf.st_mode)) continue;
 #endif
 
       snprintf(outfile, sizeof(outfile), "%s/%s", out_file, dir_ent->d_name);