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 link_bc()


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: refactor link_bc() for GNUnet_memcmp
Date: Tue, 23 Apr 2019 19:58:51 +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 ddea1bf4 refactor link_bc() for GNUnet_memcmp
ddea1bf4 is described below

commit ddea1bf407a1826845bc4f17260ae1051834bee8
Author: ng0 <address@hidden>
AuthorDate: Tue Apr 23 17:58:38 2019 +0000

    refactor link_bc() for GNUnet_memcmp
---
 src/lib/testing_api_cmd_refresh.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/lib/testing_api_cmd_refresh.c 
b/src/lib/testing_api_cmd_refresh.c
index 767c5296..9994eb4a 100644
--- a/src/lib/testing_api_cmd_refresh.c
+++ b/src/lib/testing_api_cmd_refresh.c
@@ -506,7 +506,7 @@ do_link_retry (void *cls)
 static void
 link_cb (void *cls,
          unsigned int http_status,
-        enum TALER_ErrorCode ec,
+         enum TALER_ErrorCode ec,
          unsigned int num_coins,
          const struct TALER_CoinSpendPrivateKeyP *coin_privs,
          const struct TALER_DenominationSignature *sigs,
@@ -591,10 +591,9 @@ link_cb (void *cls,
     /* check that the coins match */
     for (unsigned int i=0;i<num_coins;i++)
       for (unsigned int j=i+1;j<num_coins;j++)
-       if (0 == memcmp
-          (&coin_privs[i], &coin_privs[j],
-           sizeof (struct TALER_CoinSpendPrivateKeyP)))
-         GNUNET_break (0);
+        if (0 == GNUNET_memcmp
+            (&coin_privs[i], &coin_privs[j]))
+          GNUNET_break (0);
     /* Note: coins might be legitimately permutated in here... */
     found = 0;
 

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



reply via email to

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