summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorRobert Swiecki <robert@swiecki.net>2017-09-28 18:11:05 +0200
committerRobert Swiecki <robert@swiecki.net>2017-09-28 18:11:05 +0200
commitd0fa62c5606ba9caf914b4db031d22d9551d16ba (patch)
treefca6ce7a841b3a179e6218af316ad614fd2c3393 /input.c
parent81f166220ef5187525e5b56d8882cdfa8fa5c87e (diff)
downloadhonggfuzz-d0fa62c5606ba9caf914b4db031d22d9551d16ba.tar.gz
make indent with clang-format
Diffstat (limited to 'input.c')
-rw-r--r--input.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/input.c b/input.c
index 63d728fa..99c1d3e0 100644
--- a/input.c
+++ b/input.c
@@ -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;