[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34480 - gnunet/src/scalarproduct
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34480 - gnunet/src/scalarproduct |
Date: |
Sat, 6 Dec 2014 23:43:47 +0100 |
Author: grothoff
Date: 2014-12-06 23:43:47 +0100 (Sat, 06 Dec 2014)
New Revision: 34480
Modified:
gnunet/src/scalarproduct/gnunet-service-scalarproduct_bob.c
Log:
-mark minor todos
Modified: gnunet/src/scalarproduct/gnunet-service-scalarproduct_bob.c
===================================================================
--- gnunet/src/scalarproduct/gnunet-service-scalarproduct_bob.c 2014-12-06
22:41:30 UTC (rev 34479)
+++ gnunet/src/scalarproduct/gnunet-service-scalarproduct_bob.c 2014-12-06
22:43:47 UTC (rev 34480)
@@ -625,6 +625,7 @@
* @param vector the vector to compute over
* @param length the length of the vector
* @return an MPI value containing the calculated sum, never NULL
+ * TODO: code duplication with Alice!
*/
static gcry_mpi_t
compute_square_sum (const gcry_mpi_t *vector,
@@ -770,16 +771,14 @@
}
-
-
-
/**
* Iterator to copy over messages from the hash map
* into an array for sorting.
*
- * @param cls the `struct AliceServiceSession *`
+ * @param cls the `struct BobServiceSession *`
* @param key the key (unused)
* @param value the `struct GNUNET_SCALARPRODUCT_Element *`
+ * TODO: code duplication with Alice!
*/
static int
copy_element_cb (void *cls,
@@ -810,6 +809,7 @@
* @param a pointer to first `struct MpiValue *`
* @param b pointer to first `struct MpiValue *`
* @return -1 for a < b, 0 for a=b, 1 for a > b.
+ * TODO: code duplication with Alice!
*/
static int
element_cmp (const void *a,
@@ -833,6 +833,7 @@
static void
transmit_cryptographic_reply (struct BobServiceSession *s)
{
+ /* TODO: code duplication with Alice! */
s->sorted_elements
= GNUNET_malloc (GNUNET_CONTAINER_multihashmap_size
(s->intersected_elements) *
sizeof (struct MpiElement));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34480 - gnunet/src/scalarproduct,
gnunet <=