[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 03/05: Refactor test_exchangedb_auditors f
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 03/05: Refactor test_exchangedb_auditors for GNUNET_memcmp |
Date: |
Wed, 10 Apr 2019 22:52:03 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository exchange.
commit f54d6294b91da3a3181ec1360a3f4be5e3e5cf20
Author: ng0 <address@hidden>
AuthorDate: Wed Apr 10 20:49:11 2019 +0000
Refactor test_exchangedb_auditors for GNUNET_memcmp
---
src/exchangedb/test_exchangedb_auditors.c | 20 ++++++++------------
1 file 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;
--
To stop receiving notification emails like this one, please contact
address@hidden