mirror of
https://github.com/libevent/libevent.git
synced 2025-01-20 05:02:55 +08:00
45eba6ffd5
"flush" can imply writing something out to a file or connection before clearing it; "clear" always means "remove". It's also potentially misleading to say "outdated" here, since the function removes _all_ addresses regardless, not just certain outdated ones. Also, don't free the lock in this function. Also reindent the function.