Code

src/common.[ch]: Add `counter_diff', a function to calculate the difference of two...
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 17 Jan 2009 09:37:50 +0000 (10:37 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 17 Jan 2009 09:37:50 +0000 (10:37 +0100)
commit10b343057733ca75925de786f61cb7dfd58bacd5
tree4b8ce493c1fce844a291b2e3b216e10d1b248e12
parent4f05ee0090750ffb0f4915a894b7924566558988
src/common.[ch]: Add `counter_diff', a function to calculate the difference of two counters.

It's not just a simple (old - new), because wrap-around is handled, too.
src/common.c
src/common.h