Migrate table-based for-loops to key-value iteration

This commit is contained in:
Jon Siwek 2019-03-15 19:45:48 -07:00
parent 41c7b229d3
commit 01d303b480
36 changed files with 150 additions and 153 deletions

View file

@ -289,9 +289,9 @@ event file_state_remove(f: fa_file)
{
# In case any events never had matching packets, flush
# the extras to the log.
for ( i in f$u2_events )
for ( i, ev in f$u2_events )
{
Log::write(LOG, create_info(f$u2_events[i]));
Log::write(LOG, create_info(ev));
}
}
}