aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-24 17:32:03 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-24 17:32:03 +0100
commit398c70fd7434f3f7891175be96b73191e49a0afe (patch)
tree626219055ff355e38b7e0423f280dd8cbc6ccfa5 /src
parent475fbe3cbea50b1e7bb6c5f02d80a0e1d2c63ced (diff)
downloadgnunet-398c70fd7434f3f7891175be96b73191e49a0afe.tar.gz
gnunet-398c70fd7434f3f7891175be96b73191e49a0afe.zip
minimal code cleanup
Diffstat (limited to 'src')
-rw-r--r--src/scalarproduct/gnunet-service-scalarproduct_bob.c4
-rw-r--r--src/set/gnunet-service-set.c3
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,
1173 GNUNET_MQ_hd_fixed_size (alices_computation_request, 1173 GNUNET_MQ_hd_fixed_size (alices_computation_request,
1174 GNUNET_MESSAGE_TYPE_SCALARPRODUCT_SESSION_INITIALIZATION, 1174 GNUNET_MESSAGE_TYPE_SCALARPRODUCT_SESSION_INITIALIZATION,
1175 struct ServiceRequestMessage, 1175 struct ServiceRequestMessage,
1176 s), 1176 NULL),
1177 GNUNET_MQ_hd_var_size (alices_cryptodata_message, 1177 GNUNET_MQ_hd_var_size (alices_cryptodata_message,
1178 GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA, 1178 GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA,
1179 struct AliceCryptodataMessage, 1179 struct AliceCryptodataMessage,
1180 s), 1180 NULL),
1181 GNUNET_MQ_handler_end () 1181 GNUNET_MQ_handler_end ()
1182 }; 1182 };
1183 uint32_t contained_count; 1183 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,
1401 GNUNET_MQ_handler_end () 1401 GNUNET_MQ_handler_end ()
1402 }; 1402 };
1403 struct Listener *listener; 1403 struct Listener *listener;
1404 struct Operation *op;
1405 1404
1406 if (NULL != listener_get (client)) 1405 if (NULL != listener_get (client))
1407 { 1406 {
@@ -1430,7 +1429,7 @@ handle_client_listen (void *cls,
1430 &channel_end_cb, 1429 &channel_end_cb,
1431 cadet_handlers); 1430 cadet_handlers);
1432 /* check for existing incoming requests the listener might be interested in */ 1431 /* check for existing incoming requests the listener might be interested in */
1433 for (op = incoming_head; NULL != op; op = op->next) 1432 for (struct Operation *op = incoming_head; NULL != op; op = op->next)
1434 { 1433 {
1435 if (NULL == op->spec) 1434 if (NULL == op->spec)
1436 continue; /* no details available yet */ 1435 continue; /* no details available yet */