summaryrefslogtreecommitdiff
path: root/src/exchangedb/perf_select_refunds_by_coin.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2024-01-12 11:56:55 +0100
committerÖzgür Kesim <oec-taler@kesim.org>2024-01-12 11:56:55 +0100
commita6b35ee7d345aa11e0388733fb95f3a4d2e52180 (patch)
tree6b33d6265092df3d2bc92b82bfa83f71e2863979 /src/exchangedb/perf_select_refunds_by_coin.c
parent395a4c5fef631274f6cd13be697ef62ebc49546a (diff)
downloadexchange-a6b35ee7d345aa11e0388733fb95f3a4d2e52180.tar.gz
exchange-a6b35ee7d345aa11e0388733fb95f3a4d2e52180.tar.bz2
exchange-a6b35ee7d345aa11e0388733fb95f3a4d2e52180.zip
fixes for #8069, #8070 and #8072
- TALER_coin_ev_hash function now returns void - double free fixes - FAIL_IF logic fixes
Diffstat (limited to 'src/exchangedb/perf_select_refunds_by_coin.c')
-rw-r--r--src/exchangedb/perf_select_refunds_by_coin.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/exchangedb/perf_select_refunds_by_coin.c b/src/exchangedb/perf_select_refunds_by_coin.c
index 8f2946fb8..84825d6d7 100644
--- a/src/exchangedb/perf_select_refunds_by_coin.c
+++ b/src/exchangedb/perf_select_refunds_by_coin.c
@@ -33,23 +33,24 @@ static int result;
* Report line of error if @a cond is true, and jump to label "drop".
*/
#define FAILIF(cond) \
- do { \
- if (! (cond)) {break;} \
- GNUNET_break (0); \
- goto drop; \
- } while (0)
+ do { \
+ if (! (cond)) {break;} \
+ GNUNET_break (0); \
+ goto drop; \
+ } while (0)
/**
* Initializes @a ptr with random data.
*/
#define RND_BLK(ptr) \
- GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK, ptr, sizeof (*ptr))
+ GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK, ptr, \
+ sizeof (*ptr))
/**
* Initializes @a ptr with zeros.
*/
#define ZR_BLK(ptr) \
- memset (ptr, 0, sizeof (*ptr))
+ memset (ptr, 0, sizeof (*ptr))
/**
* Currency we use. Must match test-exchange-db-*.conf.
@@ -325,10 +326,9 @@ run (void *cls)
&new_dkp[cnt]->priv,
true,
bp));
- GNUNET_assert (GNUNET_OK ==
- TALER_coin_ev_hash (bp,
- &cbc.denom_pub_hash,
- &cbc.h_coin_envelope));
+ TALER_coin_ev_hash (bp,
+ &cbc.denom_pub_hash,
+ &cbc.h_coin_envelope);
GNUNET_assert (
GNUNET_OK ==
TALER_denom_sign_blinded (