From 398c70fd7434f3f7891175be96b73191e49a0afe Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 24 Feb 2017 17:32:03 +0100 Subject: [PATCH] minimal code cleanup --- src/scalarproduct/gnunet-service-scalarproduct_bob.c | 4 ++-- src/set/gnunet-service-set.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/scalarproduct/gnunet-service-scalarproduct_bob.c b/src/scalarproduct/gnunet-service-scalarproduct_bob.c index 4da2ba50e..efc3bc8ea 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct_bob.c +++ b/src/scalarproduct/gnunet-service-scalarproduct_bob.c @@ -1173,11 +1173,11 @@ handle_bob_client_message (void *cls, GNUNET_MQ_hd_fixed_size (alices_computation_request, GNUNET_MESSAGE_TYPE_SCALARPRODUCT_SESSION_INITIALIZATION, struct ServiceRequestMessage, - s), + NULL), GNUNET_MQ_hd_var_size (alices_cryptodata_message, GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA, struct AliceCryptodataMessage, - s), + NULL), GNUNET_MQ_handler_end () }; uint32_t contained_count; diff --git a/src/set/gnunet-service-set.c b/src/set/gnunet-service-set.c index 1072407f1..e3e1afe08 100644 --- a/src/set/gnunet-service-set.c +++ b/src/set/gnunet-service-set.c @@ -1401,7 +1401,6 @@ handle_client_listen (void *cls, GNUNET_MQ_handler_end () }; struct Listener *listener; - struct Operation *op; if (NULL != listener_get (client)) { @@ -1430,7 +1429,7 @@ handle_client_listen (void *cls, &channel_end_cb, cadet_handlers); /* check for existing incoming requests the listener might be interested in */ - for (op = incoming_head; NULL != op; op = op->next) + for (struct Operation *op = incoming_head; NULL != op; op = op->next) { if (NULL == op->spec) continue; /* no details available yet */ -- 2.25.1