LOG (GNUNET_ERROR_TYPE_ERROR,
"Session %s failed: service failure\n",
GNUNET_h2s (&closure->key));
+ break;
case GNUNET_SCALARPRODUCT_Status_ServiceDisconnected:
LOG (GNUNET_ERROR_TYPE_ERROR,
"Session %s failed: service disconnect!\n",
"Session %s with peer %s failed: API failure\n",
GNUNET_h2s (&closure->key),
GNUNET_i2s (&closure->peer));
+ break;
case GNUNET_SCALARPRODUCT_Status_ServiceDisconnected:
LOG (GNUNET_ERROR_TYPE_ERROR,
"Session %s with peer %s was disconnected from service.\n",
int32_t element;
int i;
int32_t *elements;
- unsigned char * mask;
+ unsigned char *mask;
uint32_t mask_bytes;
uint32_t element_count = 0;
struct ScalarProductCallbackClosure * closure;
}
while (1);
- mask_bytes = element_count / 8 + (element_count % 8 ? 1 : 0);
+ mask_bytes = element_count / 8 + ( (element_count % 8) ? 1 : 0);
mask = GNUNET_malloc ((element_count / 8) + 1);
/* Read input_mask_peer1 and read in mask_peer1 array */
(void *) &closure)))
{
GNUNET_free (elements);
+ GNUNET_free (mask);
return;
}
(void *) &closure)))
{
GNUNET_free (elements);
+ GNUNET_free (mask);
return;
}
GNUNET_free (elements);
+ GNUNET_free (mask);
GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
&shutdown_task,
NULL);