minimal code cleanup
authorChristian Grothoff <christian@grothoff.org>
Fri, 24 Feb 2017 16:32:03 +0000 (17:32 +0100)
committerChristian Grothoff <christian@grothoff.org>
Fri, 24 Feb 2017 16:32:03 +0000 (17:32 +0100)
src/scalarproduct/gnunet-service-scalarproduct_bob.c
src/set/gnunet-service-set.c

index 4da2ba50e43b950d9082786becbbb0784d2a47a8..efc3bc8ea8db65a8957250c7f65824331dedbb91 100644 (file)
@@ -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;
index 1072407f19714a2bcd95913dc612ab3a63837a5b..e3e1afe08b8b35b1fedf07207eeadafef2d7ed3b 100644 (file)
@@ -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 */