fix some compiler warnings from Open/FreeBSD

This commit is contained in:
hexcoder- 2020-03-14 11:44:21 +01:00
parent d2787519e3
commit c616fcafe8
3 changed files with 4 additions and 2 deletions

View File

@ -107,7 +107,7 @@ u8 *forkserver_DMS(u64 val) {
}
list_t fsrv_list = {0};
list_t fsrv_list = {.element_prealloc_count = 0};
/* the timeout handler */
@ -306,6 +306,7 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv) {
/* Wait for the fork server to come up, but don't wait too long. */
rlen = 0;
if (fsrv->exec_tmout) {
fd_set readfds;

View File

@ -182,6 +182,7 @@ void init_cmplog_forkserver(afl_state_t *afl) {
/* Wait for the fork server to come up, but don't wait too long. */
rlen = 0;
if (afl->fsrv.exec_tmout) {
fd_set readfds;

View File

@ -71,7 +71,7 @@ static void init_mopt_globals(afl_state_t *afl) {
/* A global pointer to all instances is needed (for now) for signals to arrive
*/
list_t afl_states = {0};
list_t afl_states = {.element_prealloc_count = 0};
/* Initializes an afl_state_t. */