Commit Briefs

Omar Polo

clarify

``ev'' can be misunderstood with libev, which is not the case.


Omar Polo

identity: don't use getopt() in main

we can't portably reset it.




Omar Polo

add missing time.h include



Omar Polo

compat.h: provide __dead


Omar Polo

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.



Omar Polo

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.


Omar Polo

ev: fix corruption in bubbledown

tmp is of the wrong size, so we memcpy the wrong values. fun.



Omar Polo

reset timer id after cancelling it


Omar Polo

add a paranoic check


Omar Polo

add missing return

otherwise we try to reschedule the socket we've just closed.