diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
commit | 7e3cf5f461eb4fbb7581672bf0835da07c378136 (patch) | |
tree | bdc3874b7894242b095b892f1ed3e81a4d4f06c0 /src/transport/gnunet-service-transport_ats.c | |
parent | 01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff) | |
download | gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.tar.gz gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.zip |
tighten formatting rules
Diffstat (limited to 'src/transport/gnunet-service-transport_ats.c')
-rw-r--r-- | src/transport/gnunet-service-transport_ats.c | 12 |
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, | |||
333 | return; /* our own, ignore! */ | 333 | return; /* our own, ignore! */ |
334 | ai = find_ai (address, | 334 | ai = find_ai (address, |
335 | session); | 335 | session); |
336 | if ((NULL == ai)||(NULL == ai->ar)) | 336 | if ((NULL == ai) || (NULL == ai->ar)) |
337 | { | 337 | { |
338 | /* The address is already gone/blocked, this can happen during a blacklist | 338 | /* The address is already gone/blocked, this can happen during a blacklist |
339 | * callback. */ | 339 | * callback. */ |
@@ -366,8 +366,7 @@ GST_ats_block_address (const struct GNUNET_HELLO_Address *address, | |||
366 | above played out: it was either freed in | 366 | above played out: it was either freed in |
367 | #GNUNET_ATS_address_del_session() because it was | 367 | #GNUNET_ATS_address_del_session() because it was |
368 | incoming, or explicitly in | 368 | incoming, or explicitly in |
369 | #GNUNET_ATS_address_del_session(). */ | 369 | #GNUNET_ATS_address_del_session(). */ai->ar = NULL; |
370 | ai->ar = NULL; | ||
371 | 370 | ||
372 | /* determine when the address should come back to life */ | 371 | /* determine when the address should come back to life */ |
373 | ai->blocked = GNUNET_TIME_relative_to_absolute (ai->back_off); | 372 | ai->blocked = GNUNET_TIME_relative_to_absolute (ai->back_off); |
@@ -559,8 +558,7 @@ GST_ats_new_session (const struct GNUNET_HELLO_Address *address, | |||
559 | other part of the code could not tell if it just created a new | 558 | other part of the code could not tell if it just created a new |
560 | session or just got one recycled from the plugin; hence, we may | 559 | session or just got one recycled from the plugin; hence, we may |
561 | be called with "new" session even for an "old" session; in that | 560 | be called with "new" session even for an "old" session; in that |
562 | case, check that this is the case, but just ignore it. */ | 561 | case, check that this is the case, but just ignore it. */GNUNET_assert (NULL != (find_ai (address, session))); |
563 | GNUNET_assert (NULL != (find_ai (address, session))); | ||
564 | return; | 562 | return; |
565 | } | 563 | } |
566 | GNUNET_assert (NULL == ai->session); | 564 | GNUNET_assert (NULL == ai->session); |
@@ -679,8 +677,7 @@ GST_ats_del_session (const struct GNUNET_HELLO_Address *address, | |||
679 | above played out: it was either freed in | 677 | above played out: it was either freed in |
680 | #GNUNET_ATS_address_del_session() because it was | 678 | #GNUNET_ATS_address_del_session() because it was |
681 | incoming, or explicitly in | 679 | incoming, or explicitly in |
682 | #GNUNET_ATS_address_del_session(). */ | 680 | #GNUNET_ATS_address_del_session(). */ai->ar = NULL; |
683 | ai->ar = NULL; | ||
684 | } | 681 | } |
685 | destroy_ai (ai); | 682 | destroy_ai (ai); |
686 | return; | 683 | return; |
@@ -919,4 +916,5 @@ GST_ats_done () | |||
919 | p2a = NULL; | 916 | p2a = NULL; |
920 | } | 917 | } |
921 | 918 | ||
919 | |||
922 | /* end of gnunet-service-transport_ats.c */ | 920 | /* end of gnunet-service-transport_ats.c */ |