gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: use bool instead of int for zomb


From: gnunet
Subject: [taler-exchange] branch master updated: use bool instead of int for zombie_required
Date: Wed, 15 Jul 2020 14:28:06 +0200

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new d24b0624 use bool instead of int for zombie_required
d24b0624 is described below

commit d24b0624186725da090c63640ba0f4dbdebe37ab
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Jul 15 14:23:47 2020 +0200

    use bool instead of int for zombie_required
---
 src/exchange/taler-exchange-httpd_keystate.c |  8 +++++---
 src/exchange/taler-exchange-httpd_melt.c     | 10 +++++-----
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_keystate.c 
b/src/exchange/taler-exchange-httpd_keystate.c
index fbb5da35..4439bb94 100644
--- a/src/exchange/taler-exchange-httpd_keystate.c
+++ b/src/exchange/taler-exchange-httpd_keystate.c
@@ -2017,11 +2017,13 @@ TEH_KS_denomination_key_lookup_by_hash (
   struct GNUNET_TIME_Absolute now;
   const struct GNUNET_CONTAINER_MultiHashMap *map;
 
-  map = (TEH_KS_DKU_RECOUP == use) ? key_state->revoked_map :
-        key_state->denomkey_map;
+  map = (TEH_KS_DKU_RECOUP == use)
+        ? key_state->revoked_map
+        : key_state->denomkey_map;
   dki = GNUNET_CONTAINER_multihashmap_get (map,
                                            denom_pub_hash);
-  if ( (NULL == dki) && (TEH_KS_DKU_ZOMBIE == use))
+  if ( (NULL == dki) &&
+       (TEH_KS_DKU_ZOMBIE == use) )
     dki = GNUNET_CONTAINER_multihashmap_get (key_state->revoked_map,
                                              denom_pub_hash);
   if (NULL == dki)
diff --git a/src/exchange/taler-exchange-httpd_melt.c 
b/src/exchange/taler-exchange-httpd_melt.c
index 0af0da04..35cd2359 100644
--- a/src/exchange/taler-exchange-httpd_melt.c
+++ b/src/exchange/taler-exchange-httpd_melt.c
@@ -151,11 +151,11 @@ struct MeltContext
   struct TALER_Amount coin_refresh_fee;
 
   /**
-   * Set to #GNUNET_YES if this coin's denomination was revoked and the 
operation
+   * Set to true if this coin's denomination was revoked and the operation
    * is thus only allowed for zombie coins where the transaction
    * history includes a #TALER_EXCHANGEDB_TT_OLD_COIN_RECOUP.
    */
-  int zombie_required;
+  bool zombie_required;
 
   /**
    * We already checked and noticed that the coin is known. Hence we
@@ -216,11 +216,11 @@ refresh_check_melt (struct MHD_Connection *connection,
     {
       if (TALER_EXCHANGEDB_TT_OLD_COIN_RECOUP == tp->type)
       {
-        rmc->zombie_required = GNUNET_NO; /* clear flag: was satisfied! */
+        rmc->zombie_required = false; /* clear flag: was satisfied! */
         break;
       }
     }
-    if (GNUNET_YES == rmc->zombie_required)
+    if (rmc->zombie_required)
     {
       /* zombie status not satisfied */
       GNUNET_break_op (0);
@@ -541,7 +541,7 @@ check_for_denomination_key (struct MHD_Connection 
*connection,
                                                     &ec,
                                                     &hc);
       if (NULL != dki)
-        rmc->zombie_required = GNUNET_YES; /* check later that zombie is 
satisfied */
+        rmc->zombie_required = true; /* check later that zombie is satisfied */
     }
     if (NULL == dki)
     {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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