diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-07 02:12:36 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-07 02:12:36 +0100 |
commit | c6e6c751546124134ed0087bd30a1905a8d4a99d (patch) | |
tree | 0c2c8eaf4fa5d7d1ba4e10e302a7cb8df995d47b /src/queue.c | |
parent | f8a2fec8f399229d15d3481be0ce8567b2ed6851 (diff) | |
download | fastd-c6e6c751546124134ed0087bd30a1905a8d4a99d.tar fastd-c6e6c751546124134ed0087bd30a1905a8d4a99d.zip |
Forget old peers and addresses
Diffstat (limited to 'src/queue.c')
-rw-r--r-- | src/queue.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/queue.c b/src/queue.c index d950e33..4b5a3f0 100644 --- a/src/queue.c +++ b/src/queue.c @@ -31,11 +31,6 @@ #include <stdint.h> -/* returns (tp1 - tp2) in milliseconds */ -static inline int timespec_diff(const struct timespec *tp1, const struct timespec *tp2) { - return ((tp1->tv_sec - tp2->tv_sec))*1000 + (tp1->tv_nsec - tp2->tv_nsec)/1e6; -} - static inline bool after(const struct timespec *tp1, const struct timespec *tp2) { return (tp1->tv_sec > tp2->tv_sec || (tp1->tv_sec == tp2->tv_sec && tp1->tv_nsec > tp2->tv_nsec)); |