gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] 03/05: fix command lookup


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 03/05: fix command lookup
Date: Sat, 11 Aug 2018 02:49:13 +0200

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

grothoff pushed a commit to branch master
in repository exchange.

commit 9162b28b0af22d255c0017a2f539e22dea407881
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Aug 11 02:48:15 2018 +0200

    fix command lookup
---
 src/exchange-lib/testing_api_cmd_withdraw.c | 12 ++++++------
 src/exchange-lib/testing_api_loop.c         | 10 +++++-----
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/exchange-lib/testing_api_cmd_withdraw.c 
b/src/exchange-lib/testing_api_cmd_withdraw.c
index 50cc45e..90a15b8 100644
--- a/src/exchange-lib/testing_api_cmd_withdraw.c
+++ b/src/exchange-lib/testing_api_cmd_withdraw.c
@@ -97,19 +97,19 @@ struct WithdrawState
    * How long do we wait until we retry?
    */
   struct GNUNET_TIME_Relative backoff;
-  
+
   /**
    * Expected HTTP response code to the request.
    */
   unsigned int expected_response_code;
 
   /**
-   * Was this command modified via 
-   * #TALER_TESTING_cmd_withdraw_with_retry to 
+   * Was this command modified via
+   * #TALER_TESTING_cmd_withdraw_with_retry to
    * enable retries?
    */
   int do_retry;
-  
+
 };
 
 
@@ -502,12 +502,12 @@ struct TALER_TESTING_Command
 TALER_TESTING_cmd_withdraw_with_retry (struct TALER_TESTING_Command cmd)
 {
   struct WithdrawState *ws;
-  
+
   GNUNET_assert (&withdraw_run == cmd.run);
   ws = cmd.cls;
   ws->do_retry = GNUNET_YES;
   return cmd;
 }
-  
+
 
 /* end of testing_api_cmd_withdraw.c */
diff --git a/src/exchange-lib/testing_api_loop.c 
b/src/exchange-lib/testing_api_loop.c
index 893fc49..9d777df 100644
--- a/src/exchange-lib/testing_api_loop.c
+++ b/src/exchange-lib/testing_api_loop.c
@@ -56,7 +56,7 @@ TALER_TESTING_interpreter_lookup_command
     return NULL;
   }
   /* Search backwards as we most likely reference recent commands */
-  for (int i=is->ip; 0 >= i; i--)
+  for (int i=is->ip; i >= 0; i--)
   {
     const struct TALER_TESTING_Command *cmd = &is->commands[i];
 
@@ -75,9 +75,9 @@ TALER_TESTING_interpreter_lookup_command
                      TALER_TESTING_get_trait_cmd (cmd,
                                                   BATCH_INDEX,
                                                   &batch));
-      for (unsigned int i=0;
-           NULL != (cmd = &batch[i])->label;
-           i++)
+      for (unsigned int j=0;
+           NULL != (cmd = &batch[j])->label;
+           j++)
       {
         if ( (NULL != cmd->label) &&
              (0 == strcmp (cmd->label,
@@ -86,7 +86,7 @@ TALER_TESTING_interpreter_lookup_command
       }
     }
   }
-  GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+  GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
               "Command not found: %s\n",
               label);
   return NULL;

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



reply via email to

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