diff options
author | van Hauser <vh@thc.org> | 2020-03-11 11:42:57 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-03-11 11:42:57 +0100 |
commit | 684f4dd1c44053517c6685a8a3137691535ecd84 (patch) | |
tree | 67b729127193050c7812bf2159ffac047b45280d /src/afl-fuzz-extras.c | |
parent | d8d89507b5cdbd066c149fd3c86a91b3948521aa (diff) | |
download | afl++-684f4dd1c44053517c6685a8a3137691535ecd84.tar.gz |
honor afl_quiet on env var checks + code-format
Diffstat (limited to 'src/afl-fuzz-extras.c')
-rw-r--r-- | src/afl-fuzz-extras.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/afl-fuzz-extras.c b/src/afl-fuzz-extras.c index 5cad29ec..ff4c0ae2 100644 --- a/src/afl-fuzz-extras.c +++ b/src/afl-fuzz-extras.c @@ -51,9 +51,9 @@ void load_extras_file(afl_state_t *afl, u8 *fname, u32 *min_len, u32 *max_len, u32 dict_level) { FILE *f; - u8 buf[MAX_LINE]; - u8 *lptr; - u32 cur_line = 0; + u8 buf[MAX_LINE]; + u8 * lptr; + u32 cur_line = 0; f = fopen(fname, "r"); @@ -188,10 +188,10 @@ void load_extras_file(afl_state_t *afl, u8 *fname, u32 *min_len, u32 *max_len, void load_extras(afl_state_t *afl, u8 *dir) { - DIR *d; + DIR * d; struct dirent *de; - u32 min_len = MAX_DICT_FILE, max_len = 0, dict_level = 0; - u8 *x; + u32 min_len = MAX_DICT_FILE, max_len = 0, dict_level = 0; + u8 * x; /* If the name ends with @, extract level and continue. */ @@ -224,8 +224,8 @@ void load_extras(afl_state_t *afl, u8 *dir) { while ((de = readdir(d))) { struct stat st; - u8 *fn = alloc_printf("%s/%s", dir, de->d_name); - s32 fd; + u8 * fn = alloc_printf("%s/%s", dir, de->d_name); + s32 fd; if (lstat(fn, &st) || access(fn, R_OK)) PFATAL("Unable to access '%s'", fn); |