commit 1f66c007ef616bac8eb2a726e911feb2392fe6d6
parent 2d465315b5eca681ad9c68441e341d83641d15ba
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
Date: Thu, 7 Dec 2023 00:36:54 +0100
[db] changes in query helper
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/pq/pq_query_helper.c b/src/pq/pq_query_helper.c
@@ -22,6 +22,7 @@
#include <gnunet/gnunet_util_lib.h>
#include <gnunet/gnunet_pq_lib.h>
#include <taler/taler_pq_lib.h>
+#include "donau_util.h"
/**
@@ -37,7 +38,7 @@
* @param[out] scratch buffer for dynamic allocations (to be done via #GNUNET_malloc()
* @param scratch_length number of entries left in @a scratch
* @return -1 on error, number of offsets used in @a scratch otherwise
- *
+ */
static int
qconv_donation_unit_pub (void *cls,
const void *data,
@@ -54,7 +55,7 @@ qconv_donation_unit_pub (void *cls,
bsign_pub_key;
size_t tlen;
size_t len;
- uint32_t be[2];
+ uint32_t be[1];
char *buf;
void *tbuf;
@@ -64,7 +65,6 @@ qconv_donation_unit_pub (void *cls,
GNUNET_assert (scratch_length > 0);
GNUNET_break (NULL == cls);
be[0] = htonl ((uint32_t) bsp->cipher);
- be[1] = htonl (donation_unit_pub->age_mask.bits);
switch (bsp->cipher)
{
case GNUNET_CRYPTO_BSA_RSA:
@@ -120,6 +120,5 @@ TALER_PQ_query_param_donation_unit_pub (
return res;
}
-*/
/* end of pq/pq_query_helper.c */