summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorRobert Swiecki <robert@swiecki.net>2018-03-09 02:00:30 +0100
committerRobert Swiecki <robert@swiecki.net>2018-03-09 02:00:30 +0100
commit363510f9531d19cd6fe294fcc61d4053f0377f0d (patch)
tree2b6df1ed93d599aa31b7f70e7e8c211a250fecca /input.c
parentc7bcdae3ca491980272bf45b720d150cb24d850a (diff)
downloadhonggfuzz-363510f9531d19cd6fe294fcc61d4053f0377f0d.tar.gz
honggfuzz.h: get rid of the state substruct
Diffstat (limited to 'input.c')
-rw-r--r--input.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/input.c b/input.c
index 29358bfa..bc5d3827 100644
--- a/input.c
+++ b/input.c
@@ -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);
}