summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-08 18:58:08 +0000
committerng0 <ng0@n0.is>2019-04-08 18:58:08 +0000
commit04acf37cb643faff487668805590a12a0fb4dda1 (patch)
tree54dec850276465253f65e8e2179cf32917b484ba
parent1aa9d9fee6d73d2edcc4b95ecb184e98dcc81b1d (diff)
downloadexchange-04acf37cb643faff487668805590a12a0fb4dda1.tar.gz
exchange-04acf37cb643faff487668805590a12a0fb4dda1.tar.bz2
exchange-04acf37cb643faff487668805590a12a0fb4dda1.zip
Refactor test_exchangedb_signkeys for GNUNET_memcmp
-rw-r--r--src/exchangedb/test_exchangedb_signkeys.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/exchangedb/test_exchangedb_signkeys.c b/src/exchangedb/test_exchangedb_signkeys.c
index 2ab38c66..9ff42308 100644
--- a/src/exchangedb/test_exchangedb_signkeys.c
+++ b/src/exchangedb/test_exchangedb_signkeys.c
@@ -47,9 +47,8 @@ ski_iter (void *cls,
{
const struct TALER_EXCHANGEDB_PrivateSigningKeyInformationP *exp = cls;
- if (0 != memcmp (ski,
- exp,
- sizeof (struct TALER_EXCHANGEDB_PrivateSigningKeyInformationP)))
+ if (0 != GNUNET_memcmp (ski,
+ exp))
{
GNUNET_break (0);
return GNUNET_SYSERR;