diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-02-22 15:20:25 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-02-22 15:20:25 +0100 |
commit | 96c9ba0f09db026ec361b4d4d3a1fbf1f57bdc06 (patch) | |
tree | 8c32464bd3a2fc0f1178c2e357617a9c4e256114 /src/peer.h | |
parent | 8255dd8965cde43311d6e89ca9e9644fe29d4bca (diff) | |
download | fastd-96c9ba0f09db026ec361b4d4d3a1fbf1f57bdc06.tar fastd-96c9ba0f09db026ec361b4d4d3a1fbf1f57bdc06.zip |
types: replace static consts with defines
Diffstat (limited to 'src/peer.h')
-rw-r--r-- | src/peer.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) */ |