diff options
author | Robert Swiecki <robert@swiecki.net> | 2023-04-14 21:48:29 +0200 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2023-04-14 21:48:29 +0200 |
commit | f7b69eefb28b48e481dfa414873e2960b77452ac (patch) | |
tree | 7998cc48a5db7ec08b2e0b26fce8658406dfd112 | |
parent | e0947b45b69aace0d9a1c3eca5b0cc37bc708031 (diff) | |
download | honggfuzz-f7b69eefb28b48e481dfa414873e2960b77452ac.tar.gz |
make indent depend
-rw-r--r-- | cmdline.c | 1 | ||||
-rw-r--r-- | honggfuzz.c | 5 | ||||
-rw-r--r-- | honggfuzz.h | 2 |
3 files changed, 5 insertions, 3 deletions
@@ -355,6 +355,7 @@ bool cmdlineParse(int argc, char* argv[], honggfuzz_t* hfuzz) { .runEndTime = 0, .tmOut = 1, .lastCovUpdate = time(NULL), + .exitOnTime = 0, .timeOfLongestUnitUSecs = 0, .tmoutVTALRM = false, }, diff --git a/honggfuzz.c b/honggfuzz.c index bba5703c..b554b47e 100644 --- a/honggfuzz.c +++ b/honggfuzz.c @@ -283,8 +283,9 @@ static uint8_t mainThreadLoop(honggfuzz_t* hfuzz) { break; } if (hfuzz->timing.exitOnTime > 0 && - time(NULL) - ATOMIC_GET(hfuzz->timing.lastCovUpdate) > hfuzz->timing.exitOnTime) { - LOG_I("No new coverage was found for the last %ld seconds, terminating", hfuzz->timing.exitOnTime); + time(NULL) - ATOMIC_GET(hfuzz->timing.lastCovUpdate) > hfuzz->timing.exitOnTime) { + LOG_I("No new coverage was found for the last %ld seconds, terminating", + hfuzz->timing.exitOnTime); break; } pingThreads(hfuzz); diff --git a/honggfuzz.h b/honggfuzz.h index ef8dced7..eee7b81f 100644 --- a/honggfuzz.h +++ b/honggfuzz.h @@ -372,7 +372,7 @@ typedef struct { int perThreadCovFeedbackFd; unsigned triesLeft; dynfile_t* current; - hwcnt_t hwCnts; + hwcnt_t hwCnts; struct { /* For Linux code */ |