diff options
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/test_exchangedb_auditors.c | 20 | ||||
-rw-r--r-- | src/exchangedb/test_exchangedb_denomkeys.c | 5 |
2 files changed, 10 insertions, 15 deletions
diff --git a/src/exchangedb/test_exchangedb_auditors.c b/src/exchangedb/test_exchangedb_auditors.c index bc5d378f9..9424919c4 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; diff --git a/src/exchangedb/test_exchangedb_denomkeys.c b/src/exchangedb/test_exchangedb_denomkeys.c index 1b63f2342..a8e7af04d 100644 --- a/src/exchangedb/test_exchangedb_denomkeys.c +++ b/src/exchangedb/test_exchangedb_denomkeys.c @@ -95,9 +95,8 @@ dki_iter_revoked (void *cls, GNUNET_break (0); return GNUNET_SYSERR; } - if (0 != memcmp (denom_hash, - &exp->issue.properties.denom_hash, - sizeof (struct GNUNET_HashCode))) + if (0 != GNUNET_memcmp (denom_hash, + &exp->issue.properties.denom_hash)) { GNUNET_break (0); return GNUNET_SYSERR; |