From a6d5893f9680dea995b1172f601adc27b2039b75 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 25 Oct 2015 22:39:09 +0000 Subject: -fix indentation, fix bug that caused us to try to merge requests twice --- src/fs/gnunet-service-fs.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/fs/gnunet-service-fs.c') diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index 11cbe5a70..a4300a4ce 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c @@ -575,7 +575,7 @@ shutdown_task (void *cls, * peer connects, giving us a chance to decide about submitting * the existing request to the new peer. * - * @param cls the 'struct GSF_ConnectedPeer' of the new peer + * @param cls the `struct GSF_ConnectedPeer` of the new peer * @param key query for the request * @param pr handle to the pending request * @return #GNUNET_YES to continue to iterate @@ -589,10 +589,12 @@ consider_peer_for_forwarding (void *cls, struct GNUNET_PeerIdentity pid; GSF_connected_peer_get_identity_ (cp, &pid); - if (GNUNET_YES != GSF_pending_request_test_target_ (pr, &pid)) + if (GNUNET_YES != + GSF_pending_request_test_target_ (pr, &pid)) { GNUNET_STATISTICS_update (GSF_stats, - gettext_noop ("# Loopback routes suppressed"), 1, + gettext_noop ("# Loopback routes suppressed"), + 1, GNUNET_NO); return GNUNET_YES; } @@ -608,11 +610,13 @@ consider_peer_for_forwarding (void *cls, * @param cp handle to the newly created connected peer record */ static void -connected_peer_cb (void *cls, struct GSF_ConnectedPeer *cp) +connected_peer_cb (void *cls, + struct GSF_ConnectedPeer *cp) { if (NULL == cp) return; - GSF_iterate_pending_requests_ (&consider_peer_for_forwarding, cp); + GSF_iterate_pending_requests_ (&consider_peer_for_forwarding, + cp); } -- cgit v1.2.3