From 75ae0e1aef8d4a0f868c8453741ebe39757b4289 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 18 Feb 2021 16:44:43 +0100 Subject: -style fix --- src/setu/gnunet-service-setu.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c index 9ec482559..f06e9cf9b 100644 --- a/src/setu/gnunet-service-setu.c +++ b/src/setu/gnunet-service-setu.c @@ -143,7 +143,7 @@ enum UnionOperationPhase * Phase that receives full set first and then sends elements that are * the local peer missing */ - PHASE_FULL_RECEIVING + PHASE_FULL_RECEIVING }; @@ -2057,13 +2057,14 @@ check_union_p2p_full_element (void *cls, { struct Operation *op = cls; - // Allow only receiving of full element message if in expect IBF or in PHASE_FULL_RECEIVING state - if ( op->phase != PHASE_EXPECT_IBF && op->phase != PHASE_FULL_RECEIVING ) { - GNUNET_break_op (0); - return GNUNET_SYSERR; - } - (void) op; + /* Allow only receiving of full element message if in expect IBF or in PHASE_FULL_RECEIVING state */ + if ( (PHASE_EXPECT_IBF != op->phase) && + (PHASE_FULL_RECEIVING != op->phase) ) + { + GNUNET_break_op (0); + return GNUNET_SYSERR; + } // FIXME: check that we expect full elements here? return GNUNET_OK; } -- cgit v1.2.3