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 and _is_zero
Date: Mon, 08 Apr 2019 17:45:59 +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 d77bf8ab Refactor for GNUNET_memcmp and _is_zero
d77bf8ab is described below

commit d77bf8ab53c03d2d39e90493b2f1c65816f8d6fb
Author: ng0 <address@hidden>
AuthorDate: Mon Apr 8 15:45:52 2019 +0000

    Refactor for GNUNET_memcmp and _is_zero
---
 src/exchange-tools/taler-exchange-keyup.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/exchange-tools/taler-exchange-keyup.c 
b/src/exchange-tools/taler-exchange-keyup.c
index dcbc83d0..f2b48a53 100644
--- a/src/exchange-tools/taler-exchange-keyup.c
+++ b/src/exchange-tools/taler-exchange-keyup.c
@@ -1308,9 +1308,8 @@ run (void *cls,
       return;
     }
     if (0 !=
-        memcmp (&master_public_key,
-                &master_public_key_from_cfg,
-                sizeof (struct TALER_MasterPublicKeyP)))
+        GNUNET_memcmp (&master_public_key,
+                       &master_public_key_from_cfg))
     {
       GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
                                  "exchange",
@@ -1363,9 +1362,7 @@ run (void *cls,
     global_ret = 1;
     return;
   }
-  if ( (0 != memcmp (&zero,
-                     &revoke_dkh,
-                     sizeof (zero))) &&
+  if ( (0 != GNUNET_is_zero memcmp (&revoke_dkh)) &&
        (GNUNET_OK !=
         revoke_denomination (&revoke_dkh)) )
   {

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



reply via email to

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