gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] branch master updated: Refactor for GNUNET


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: Refactor for GNUNET_memcmp
Date: Mon, 08 Apr 2019 20:17:35 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 8e4df341 Refactor for GNUNET_memcmp
8e4df341 is described below

commit 8e4df341565d1673374f29decac95dbdbba029f2
Author: ng0 <address@hidden>
AuthorDate: Mon Apr 8 18:17:29 2019 +0000

    Refactor for GNUNET_memcmp
---
 src/lib/exchange_api_handle.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index 0993257a..44747b27 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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]