summaryrefslogtreecommitdiffstats
path: root/src/peer.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-02-22 15:20:25 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-02-22 15:20:25 +0100
commit96c9ba0f09db026ec361b4d4d3a1fbf1f57bdc06 (patch)
tree8c32464bd3a2fc0f1178c2e357617a9c4e256114 /src/peer.h
parent8255dd8965cde43311d6e89ca9e9644fe29d4bca (diff)
downloadfastd-96c9ba0f09db026ec361b4d4d3a1fbf1f57bdc06.tar
fastd-96c9ba0f09db026ec361b4d4d3a1fbf1f57bdc06.zip
types: replace static consts with defines
Diffstat (limited to 'src/peer.h')
-rw-r--r--src/peer.h4
1 files changed, 2 insertions, 2 deletions
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) */