summaryrefslogtreecommitdiffstats
path: root/src/peer.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-28 00:55:39 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-28 00:55:39 +0200
commit22a6b5706593d222bfc602859dbccd7beb5231ed (patch)
tree6cb946edf94469fb04a935eb3638f80b585475f1 /src/peer.h
parentb69d34071b26e8a6230cde199989071b833d8c99 (diff)
downloadfastd-22a6b5706593d222bfc602859dbccd7beb5231ed.tar
fastd-22a6b5706593d222bfc602859dbccd7beb5231ed.zip
Make crypto handshake with floating peers work
Diffstat (limited to 'src/peer.h')
-rw-r--r--src/peer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/peer.h b/src/peer.h
index 02aa6de..d68d830 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -98,7 +98,7 @@ static inline bool fastd_peer_is_established(const fastd_peer *peer) {
return (peer->state == STATE_ESTABLISHED || peer->state == STATE_TEMP_ESTABLISHED);
}
-static inline void fastd_peer_set_established(fastd_context *ctx, fastd_peer *peer) {
+static inline void fastd_peer_set_established(fastd_peer *peer) {
switch(peer->state) {
case STATE_WAIT:
peer->state = STATE_ESTABLISHED;
@@ -109,7 +109,6 @@ static inline void fastd_peer_set_established(fastd_context *ctx, fastd_peer *pe
break;
default:
- pr_warn(ctx, "tried to set an already established connection to established");
return;
}
}