summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-25 21:42:37 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-25 21:42:37 +0100
commit3cb49e832b2f4237bfb895720b4d3c3dbcf881e5 (patch)
tree7488a0887e77a1ce9f349dea6048f2efe4749c9c /src/transport/gnunet-service-transport_neighbours.c
parentb660cf48f0e34cffb13f0f6cad26f691d4e41aab (diff)
style fixes during debugging
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index 72c425591..3472e8ee0 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -713,7 +713,7 @@ set_state_and_timeout (struct NeighbourMapEntry *n,
struct GNUNET_TIME_Absolute timeout)
{
if (GNUNET_TRANSPORT_is_connected (s) &&
- ! GNUNET_TRANSPORT_is_connected (n->state) )
+ (! GNUNET_TRANSPORT_is_connected (n->state)) )
{
neighbours_connect_notification (n);
GNUNET_STATISTICS_set (GST_stats,
@@ -721,8 +721,8 @@ set_state_and_timeout (struct NeighbourMapEntry *n,
++neighbours_connected,
GNUNET_NO);
}
- if (! GNUNET_TRANSPORT_is_connected (s) &&
- GNUNET_TRANSPORT_is_connected (n->state) )
+ if ((! GNUNET_TRANSPORT_is_connected (s)) &&
+ GNUNET_TRANSPORT_is_connected (n->state) )
{
GNUNET_STATISTICS_set (GST_stats,
gettext_noop ("# peers connected"),
@@ -948,7 +948,8 @@ free_neighbour (struct NeighbourMapEntry *n)
}
GNUNET_assert (GNUNET_YES ==
GNUNET_CONTAINER_multipeermap_remove (neighbours,
- &n->id, n));
+ &n->id,
+ n));
/* Cancel address requests for this peer */
if (NULL != n->suggest_handle)