aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-08 18:17:29 +0000
committerng0 <ng0@n0.is>2019-04-08 18:17:29 +0000
commit8e4df341565d1673374f29decac95dbdbba029f2 (patch)
tree292a5e37ac3d142e2eb1538b80c369f0b948da0e /src
parentffac5413332ec2e0bbd261b60589d7bc5a051e8b (diff)
Refactor for GNUNET_memcmp
Diffstat (limited to 'src')
-rw-r--r--src/lib/exchange_api_handle.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index 0993257a8..44747b279 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -594,9 +594,8 @@ parse_json_auditor (struct TALER_EXCHANGE_AuditorInformation *auditor,
dk_off = UINT_MAX;
for (unsigned int j=0;j<key_data->num_denom_keys;j++)
{
- if (0 == memcmp (&denom_h,
- &key_data->denom_keys[j].h_key,
- sizeof (struct GNUNET_HashCode)))
+ if (0 == GNUNET_memcmp (&denom_h,
+ &key_data->denom_keys[j].h_key))
{
dk = &key_data->denom_keys[j];
dk_off = j;
@@ -756,7 +755,7 @@ TALER_denoms_cmp (struct TALER_EXCHANGE_DenomPublicKey *denom1,
(denom1->key.rsa_public_key,
denom2->key.rsa_public_key))
return 1;
-
+
tmp1 = denom1->key.rsa_public_key;
tmp2 = denom2->key.rsa_public_key;
@@ -764,9 +763,8 @@ TALER_denoms_cmp (struct TALER_EXCHANGE_DenomPublicKey *denom1,
denom2->key.rsa_public_key = NULL;
/* Then procede with the rest of the object. */
- if (0 != memcmp (denom1,
- denom2,
- sizeof (struct TALER_EXCHANGE_DenomPublicKey)))
+ if (0 != GNUNET_memcmp (denom1,
+ denom2))
{
denom1->key.rsa_public_key = tmp1;
denom2->key.rsa_public_key = tmp2;