summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_ats.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-31 13:03:48 +0100
committerChristian Grothoff <christian@grothoff.org>2019-10-31 13:03:48 +0100
commit7e3cf5f461eb4fbb7581672bf0835da07c378136 (patch)
treebdc3874b7894242b095b892f1ed3e81a4d4f06c0 /src/transport/gnunet-service-transport_ats.c
parent01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff)
tighten formatting rules
Diffstat (limited to 'src/transport/gnunet-service-transport_ats.c')
-rw-r--r--src/transport/gnunet-service-transport_ats.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/transport/gnunet-service-transport_ats.c b/src/transport/gnunet-service-transport_ats.c
index 9c262dbdf..130311e15 100644
--- a/src/transport/gnunet-service-transport_ats.c
+++ b/src/transport/gnunet-service-transport_ats.c
@@ -333,7 +333,7 @@ GST_ats_block_address (const struct GNUNET_HELLO_Address *address,
return; /* our own, ignore! */
ai = find_ai (address,
session);
- if ((NULL == ai)||(NULL == ai->ar))
+ if ((NULL == ai) || (NULL == ai->ar))
{
/* The address is already gone/blocked, this can happen during a blacklist
* callback. */
@@ -366,8 +366,7 @@ GST_ats_block_address (const struct GNUNET_HELLO_Address *address,
above played out: it was either freed in
#GNUNET_ATS_address_del_session() because it was
incoming, or explicitly in
- #GNUNET_ATS_address_del_session(). */
- ai->ar = NULL;
+ #GNUNET_ATS_address_del_session(). */ai->ar = NULL;
/* determine when the address should come back to life */
ai->blocked = GNUNET_TIME_relative_to_absolute (ai->back_off);
@@ -559,8 +558,7 @@ GST_ats_new_session (const struct GNUNET_HELLO_Address *address,
other part of the code could not tell if it just created a new
session or just got one recycled from the plugin; hence, we may
be called with "new" session even for an "old" session; in that
- case, check that this is the case, but just ignore it. */
- GNUNET_assert (NULL != (find_ai (address, session)));
+ case, check that this is the case, but just ignore it. */GNUNET_assert (NULL != (find_ai (address, session)));
return;
}
GNUNET_assert (NULL == ai->session);
@@ -679,8 +677,7 @@ GST_ats_del_session (const struct GNUNET_HELLO_Address *address,
above played out: it was either freed in
#GNUNET_ATS_address_del_session() because it was
incoming, or explicitly in
- #GNUNET_ATS_address_del_session(). */
- ai->ar = NULL;
+ #GNUNET_ATS_address_del_session(). */ai->ar = NULL;
}
destroy_ai (ai);
return;
@@ -919,4 +916,5 @@ GST_ats_done ()
p2a = NULL;
}
+
/* end of gnunet-service-transport_ats.c */