diff options
author | Robert Swiecki <robert@swiecki.net> | 2017-09-28 18:11:05 +0200 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2017-09-28 18:11:05 +0200 |
commit | d0fa62c5606ba9caf914b4db031d22d9551d16ba (patch) | |
tree | fca6ce7a841b3a179e6218af316ad614fd2c3393 /input.c | |
parent | 81f166220ef5187525e5b56d8882cdfa8fa5c87e (diff) | |
download | honggfuzz-d0fa62c5606ba9caf914b4db031d22d9551d16ba.tar.gz |
make indent with clang-format
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -84,8 +84,8 @@ static bool input_getDirStatsAndRewind(honggfuzz_t * hfuzz) continue; } if (hfuzz->maxFileSz != 0UL && st.st_size > (off_t) hfuzz->maxFileSz) { - LOG_W("File '%s' is bigger than maximal defined file size (-F): %" PRId64 " > %" - PRId64, fname, (int64_t) st.st_size, (int64_t) hfuzz->maxFileSz); + LOG_W("File '%s' is bigger than maximal defined file size (-F): %" PRId64 " > %" PRId64, + fname, (int64_t) st.st_size, (int64_t) hfuzz->maxFileSz); } if (st.st_size == 0U) { LOG_W("File '%s' is empty", fname); @@ -236,8 +236,8 @@ bool input_parseDictionary(honggfuzz_t * hfuzz) } char bufn[1025] = { 0 }; char bufv[1025] = { 0 }; - if (sscanf(lineptr, "\"%1024s", bufv) != 1 && - sscanf(lineptr, "%1024[^=]=\"%1024s", bufn, bufv) != 2) { + if (sscanf(lineptr, "\"%1024s", bufv) != 1 + && sscanf(lineptr, "%1024[^=]=\"%1024s", bufn, bufv) != 2) { LOG_W("Incorrect dictionary entry: '%s'. Skipping", lineptr); continue; } @@ -277,9 +277,10 @@ bool input_parseBlacklist(honggfuzz_t * hfuzz) break; } - if ((hfuzz->blacklist = - util_Realloc(hfuzz->blacklist, - (hfuzz->blacklistCnt + 1) * sizeof(hfuzz->blacklist[0]))) == NULL) { + if ((hfuzz->blacklist = util_Realloc(hfuzz->blacklist, + (hfuzz->blacklistCnt + + 1) * sizeof(hfuzz->blacklist[0]))) + == NULL) { PLOG_W("realloc failed (sz=%zu)", (hfuzz->blacklistCnt + 1) * sizeof(hfuzz->blacklist[0])); return false; |