From c6e6c751546124134ed0087bd30a1905a8d4a99d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 7 Mar 2012 02:12:36 +0100 Subject: Forget old peers and addresses --- src/queue.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/queue.c') 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 -/* 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)); -- cgit v1.2.3