summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-08 18:15:16 +0000
committerng0 <ng0@n0.is>2019-04-08 18:15:16 +0000
commit9f18ec58bc3fbba26221fc6d844d5b9f524c3aff (patch)
treed42992006f287b6d36df65ab79903a651914f305
parentd77bf8ab53c03d2d39e90493b2f1c65816f8d6fb (diff)
downloadexchange-9f18ec58bc3fbba26221fc6d844d5b9f524c3aff.tar.gz
exchange-9f18ec58bc3fbba26221fc6d844d5b9f524c3aff.tar.bz2
exchange-9f18ec58bc3fbba26221fc6d844d5b9f524c3aff.zip
Refactor for GNUNET_memcmp
-rw-r--r--src/exchangedb/test_exchangedb.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c
index c6e9b86a..14d8055c 100644
--- a/src/exchangedb/test_exchangedb.c
+++ b/src/exchangedb/test_exchangedb.c
@@ -278,9 +278,8 @@ create_denom_key_pair (unsigned int size,
destroy_denom_key_pair (dkp);
return NULL;
}
- if (0 != memcmp (&dki.issue,
- &issue2,
- sizeof (issue2)))
+ if (0 != GNUNET_memcmp (&dki.issue,
+ &issue2))
{
GNUNET_break(0);
destroy_denom_key_pair (dkp);
@@ -428,9 +427,8 @@ check_refresh_reveal_cb (void *cls,
GNUNET_assert (acoin->coin_ev_size == bcoin->coin_ev_size);
GNUNET_assert (0 ==
- memcmp (acoin->coin_ev,
- bcoin->coin_ev,
- acoin->coin_ev_size));
+ GNUNET_memcmp (acoin->coin_ev,
+ bcoin->coin_ev));
GNUNET_assert (0 ==
GNUNET_CRYPTO_rsa_public_key_cmp (acoin->denom_pub.rsa_public_key,
bcoin->denom_pub.rsa_public_key));