summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-10 20:49:11 +0000
committerng0 <ng0@n0.is>2019-04-10 20:49:11 +0000
commitf54d6294b91da3a3181ec1360a3f4be5e3e5cf20 (patch)
treeaf513fadc812edb45a514c7876d110b8ab43a7d5
parentb7b53da061cd44cb023ee176b120c3599427cbc4 (diff)
downloadexchange-f54d6294b91da3a3181ec1360a3f4be5e3e5cf20.tar.gz
exchange-f54d6294b91da3a3181ec1360a3f4be5e3e5cf20.tar.bz2
exchange-f54d6294b91da3a3181ec1360a3f4be5e3e5cf20.zip
Refactor test_exchangedb_auditors for GNUNET_memcmp
-rw-r--r--src/exchangedb/test_exchangedb_auditors.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/exchangedb/test_exchangedb_auditors.c b/src/exchangedb/test_exchangedb_auditors.c
index bc5d378f..9424919c 100644
--- a/src/exchangedb/test_exchangedb_auditors.c
+++ b/src/exchangedb/test_exchangedb_auditors.c
@@ -78,30 +78,26 @@ auditor_cb (void *cls,
GNUNET_break (0);
return GNUNET_SYSERR;
}
- if (0 != memcmp (&want_apub,
- apub,
- sizeof (struct TALER_AuditorPublicKeyP)))
+ if (0 != GNUNET_memcmp (&want_apub,
+ apub))
{
GNUNET_break (0);
return GNUNET_SYSERR;
}
- if (0 != memcmp (&want_mpub,
- mpub,
- sizeof (struct TALER_MasterPublicKeyP)))
+ if (0 != GNUNET_memcmp (&want_mpub,
+ mpub))
{
GNUNET_break (0);
return GNUNET_SYSERR;
}
- if (0 != memcmp (&want_asigs,
- asigs,
- sizeof (struct TALER_AuditorSignatureP)))
+ if (0 != GNUNET_memcmp (&want_asigs,
+ asigs))
{
GNUNET_break (0);
return GNUNET_SYSERR;
}
- if (0 != memcmp (&want_dki,
- dki,
- sizeof (struct TALER_DenominationKeyValidityPS)))
+ if (0 != GNUNET_memcmp (&want_dki,
+ dki))
{
GNUNET_break (0);
return GNUNET_SYSERR;