diff options
author | ng0 <ng0@n0.is> | 2019-04-23 18:03:16 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-04-23 18:03:16 +0000 |
commit | e1cf1a48af5f486b6ef94a20335e5e7f52db367e (patch) | |
tree | f376be5b10d6266ce7455f62a809a7d7bc86c785 | |
parent | ddea1bf407a1826845bc4f17260ae1051834bee8 (diff) |
refactor for GNUnet_memcmp
-rw-r--r-- | src/lib/testing_api_cmd_refresh.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/testing_api_cmd_refresh.c b/src/lib/testing_api_cmd_refresh.c index 9994eb4af..ec8855810 100644 --- a/src/lib/testing_api_cmd_refresh.c +++ b/src/lib/testing_api_cmd_refresh.c @@ -611,9 +611,8 @@ link_cb (void *cls, for (unsigned int i=0;i<num_coins;i++) for (unsigned int j=0;j<num_coins;j++) { - if ( (0 == memcmp - (&coin_privs[i], &fc[j].coin_priv, - sizeof (struct TALER_CoinSpendPrivateKeyP))) && + if ( (0 == GNUNET_memcmp + (&coin_privs[i], &fc[j].coin_priv)) && (0 == GNUNET_CRYPTO_rsa_signature_cmp (fc[i].sig.rsa_signature, sigs[j].rsa_signature)) && |