From: Christian Grothoff Date: Fri, 24 Feb 2017 16:32:03 +0000 (+0100) Subject: minimal code cleanup X-Git-Tag: taler-0.2.1~70^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=398c70fd7434f3f7891175be96b73191e49a0afe;p=oweals%2Fgnunet.git minimal code cleanup --- 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 */