diff options
author | ng0 <ng0@n0.is> | 2019-04-08 18:48:33 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-04-08 18:48:33 +0000 |
commit | 8c591b4f1a16d5d2668d8684bb477dd5a2b3d74a (patch) | |
tree | c85d6bf3fc2af67a4116f769ed6225af100ce547 /src/lib/exchange_api_common.c | |
parent | b669f0dfaed4fd517f5f89f9c32e95641b37e407 (diff) |
Refactor lib/exchange_api_common.c for GNUNET_memcmp
Diffstat (limited to 'src/lib/exchange_api_common.c')
-rw-r--r-- | src/lib/exchange_api_common.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c index 6b0aa6ff6..a9c6e16cf 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; |