aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-23 17:58:38 +0000
committerng0 <ng0@n0.is>2019-04-23 17:58:38 +0000
commitddea1bf407a1826845bc4f17260ae1051834bee8 (patch)
treea74302bd98e48bb5a00010d77a32e29a36c373b6 /src/lib
parent9c515d218b6267fdd4343b2aea2648031b44c8a1 (diff)
refactor link_bc() for GNUnet_memcmp
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/testing_api_cmd_refresh.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/testing_api_cmd_refresh.c b/src/lib/testing_api_cmd_refresh.c
index 767c52968..9994eb4af 100644
--- a/src/lib/testing_api_cmd_refresh.c
+++ b/src/lib/testing_api_cmd_refresh.c
@@ -506,7 +506,7 @@ do_link_retry (void *cls)
static void
link_cb (void *cls,
unsigned int http_status,
- enum TALER_ErrorCode ec,
+ enum TALER_ErrorCode ec,
unsigned int num_coins,
const struct TALER_CoinSpendPrivateKeyP *coin_privs,
const struct TALER_DenominationSignature *sigs,
@@ -591,10 +591,9 @@ link_cb (void *cls,
/* check that the coins match */
for (unsigned int i=0;i<num_coins;i++)
for (unsigned int j=i+1;j<num_coins;j++)
- if (0 == memcmp
- (&coin_privs[i], &coin_privs[j],
- sizeof (struct TALER_CoinSpendPrivateKeyP)))
- GNUNET_break (0);
+ if (0 == GNUNET_memcmp
+ (&coin_privs[i], &coin_privs[j]))
+ GNUNET_break (0);
/* Note: coins might be legitimately permutated in here... */
found = 0;