From 96c9ba0f09db026ec361b4d4d3a1fbf1f57bdc06 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 22 Feb 2016 15:20:25 +0100 Subject: types: replace static consts with defines --- src/peer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/peer.h') diff --git a/src/peer.h b/src/peer.h index 88e192b..589ac90 100644 --- a/src/peer.h +++ b/src/peer.h @@ -186,7 +186,7 @@ static inline void fastd_peer_schedule_handshake_default(fastd_peer_t *peer) { /** Cancels a scheduled handshake */ static inline void fastd_peer_unschedule_handshake(fastd_peer_t *peer) { - peer->next_handshake = fastd_timeout_inv; + peer->next_handshake = FASTD_TIMEOUT_INV; } #ifdef WITH_DYNAMIC_PEERS @@ -207,7 +207,7 @@ static inline void fastd_peer_set_verified(fastd_peer_t *peer, bool ok) { /** Checks if there's a handshake queued for the peer */ static inline bool fastd_peer_handshake_scheduled(fastd_peer_t *peer) { - return (peer->next_handshake != fastd_timeout_inv); + return (peer->next_handshake != FASTD_TIMEOUT_INV); } /** Checks if a peer is floating (is has at least one floating remote or no remotes at all) */ -- cgit v1.2.3