diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-12-16 19:53:16 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-12-16 19:53:16 +0100 |
commit | ee300afb79e9788f98d4c98d4535018f7fdbdcdd (patch) | |
tree | 440d42f6b785628e77a38ff5d4d04f50576bca0b /src/fastd.h | |
parent | 4475652054616ded16485341b081abf42cc6c08e (diff) | |
download | fastd-ee300afb79e9788f98d4c98d4535018f7fdbdcdd.tar fastd-ee300afb79e9788f98d4c98d4535018f7fdbdcdd.zip |
Revert "resolve: save a timestamp in the resolve return to ensure we don't confuse remotes before and after reconfiguration"
This reverts commit 4475652054616ded16485341b081abf42cc6c08e.
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/fastd.h b/src/fastd.h index 30e4bc4..b170bb5 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -80,7 +80,6 @@ union fastd_peer_address { struct fastd_resolve_return { fastd_remote_t *remote; - struct timespec resolve_time; fastd_peer_address_t addr; }; @@ -395,10 +394,6 @@ static inline bool timespec_after(const struct timespec *tp1, const struct times (tp1->tv_sec == tp2->tv_sec && tp1->tv_nsec > tp2->tv_nsec)); } -static inline bool timespec_equal(const struct timespec *tp1, const struct timespec *tp2) { - return (tp1->tv_sec == tp2->tv_sec && tp1->tv_nsec == tp2->tv_nsec); -} - /* 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; |