summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-08 18:48:33 +0000
committerng0 <ng0@n0.is>2019-04-08 18:48:33 +0000
commit8c591b4f1a16d5d2668d8684bb477dd5a2b3d74a (patch)
treec85d6bf3fc2af67a4116f769ed6225af100ce547
parentb669f0dfaed4fd517f5f89f9c32e95641b37e407 (diff)
downloadexchange-8c591b4f1a16d5d2668d8684bb477dd5a2b3d74a.tar.gz
exchange-8c591b4f1a16d5d2668d8684bb477dd5a2b3d74a.tar.bz2
exchange-8c591b4f1a16d5d2668d8684bb477dd5a2b3d74a.zip
Refactor lib/exchange_api_common.c for GNUNET_memcmp
-rw-r--r--src/lib/exchange_api_common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c
index 6b0aa6ff..a9c6e16c 100644
--- a/src/lib/exchange_api_common.c
+++ b/src/lib/exchange_api_common.c
@@ -342,9 +342,8 @@ TALER_EXCHANGE_get_exchange_signing_key_info (const struct TALER_EXCHANGE_Keys *
const struct TALER_EXCHANGE_SigningPublicKey *spk;
spk = &keys->sign_keys[i];
- if (0 == memcmp (exchange_pub,
- &spk->key,
- sizeof (struct TALER_ExchangePublicKeyP)))
+ if (0 == GNUNET_memcmp (exchange_pub,
+ &spk->key))
return spk;
}
return NULL;