Commit Briefs
clarify
``ev'' can be misunderstood with libev, which is not the case.
identity: don't use getopt() in main
we can't portably reset it.
ev: simplify heap management
make ev_timer always use the ``reserve'' space and heapify at the start of the event loop tick. Bonus points for using the better algorithm and remove the unused bubbleup.
ev: fix/improve cancel_timer and ev_timer_cancel
we only reach cancel_timer() for timers in the hap, so delete the unreachable code, and improve what we have. When deleting from the reserve space, just move the last element in the place of the removed one, no need to move everything. It'll be heapified later anyway.
ev: fix corruption in bubbledown
tmp is of the wrong size, so we memcpy the wrong values. fun.
add missing return
otherwise we try to reschedule the socket we've just closed.