mirror of
https://github.com/nmap/nmap.git
synced 2026-01-05 22:19:03 +00:00
Use gh_heap_remove instead of gh_heap_pop when result not needed.
This commit is contained in:
@@ -1214,7 +1214,7 @@ void process_expired_events(struct npool *nsp) {
|
||||
if (!event_timedout(nse))
|
||||
break;
|
||||
|
||||
gh_heap_pop(&nsp->expirables);
|
||||
gh_heap_remove(&nsp->expirables, hnode);
|
||||
process_event(nsp, NULL, nse, EV_NONE);
|
||||
assert(nse->event_done);
|
||||
update_first_events(nse);
|
||||
|
||||
Reference in New Issue
Block a user