diff options
author | Robert Swiecki <robert@swiecki.net> | 2018-03-09 02:00:30 +0100 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2018-03-09 02:00:30 +0100 |
commit | 363510f9531d19cd6fe294fcc61d4053f0377f0d (patch) | |
tree | 2b6df1ed93d599aa31b7f70e7e8c211a250fecca /input.c | |
parent | c7bcdae3ca491980272bf45b720d150cb24d850a (diff) | |
download | honggfuzz-363510f9531d19cd6fe294fcc61d4053f0377f0d.tar.gz |
honggfuzz.h: get rid of the state substruct
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -308,17 +308,17 @@ bool input_parseBlacklist(honggfuzz_t* hfuzz) { bool input_prepareDynamicInput(run_t* run) { { - MX_SCOPED_RWLOCK_READ(&run->global->state.dynfileq_mutex); + MX_SCOPED_RWLOCK_READ(&run->global->io.dynfileq_mutex); - if (run->global->state.dynfileqCnt == 0) { + if (run->global->io.dynfileqCnt == 0) { LOG_F("The dynamic file corpus is empty. This shouldn't happen"); } if (run->dynfileqCurrent == NULL) { - run->dynfileqCurrent = TAILQ_FIRST(&run->global->state.dynfileq); + run->dynfileqCurrent = TAILQ_FIRST(&run->global->io.dynfileq); } else { - if (run->dynfileqCurrent == TAILQ_LAST(&run->global->state.dynfileq, dyns_t)) { - run->dynfileqCurrent = TAILQ_FIRST(&run->global->state.dynfileq); + if (run->dynfileqCurrent == TAILQ_LAST(&run->global->io.dynfileq, dyns_t)) { + run->dynfileqCurrent = TAILQ_FIRST(&run->global->io.dynfileq); } else { run->dynfileqCurrent = TAILQ_NEXT(run->dynfileqCurrent, pointers); } |