gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] 04/06: fixed compiler warnings in assembler


From: gnunet
Subject: [taler-anastasis] 04/06: fixed compiler warnings in assembler
Date: Sun, 05 Jul 2020 19:13:18 +0200

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

dennis-neufeld pushed a commit to branch master
in repository anastasis.

commit 1f09d1629e3e2b4af61c28ff0aa08847bb718009
Author: Dennis Neufeld <dennis.neufeld@students.bfh.ch>
AuthorDate: Sun Jul 5 16:15:16 2020 +0000

    fixed compiler warnings in assembler
---
 src/cli/anastasis-cli-assembler.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/cli/anastasis-cli-assembler.c 
b/src/cli/anastasis-cli-assembler.c
index 8d1c4d4..58eb76d 100644
--- a/src/cli/anastasis-cli-assembler.c
+++ b/src/cli/anastasis-cli-assembler.c
@@ -225,7 +225,8 @@ challenge_answer_cb (void *af_cls,
     return;
   }
   printf ("Success truth#%u\n", cs->challenge_index);
-  challenges[cs->challenge_index].solved = 1;
+  unsigned int solved = 1;
+  challenges[cs->challenge_index].solved = &solved;
 }
 
 
@@ -306,7 +307,7 @@ read_keyboard_command (void *cls)
     for (unsigned int i = 0; i < challenges_length; i++)
     {
       char solved_state = '-';
-      if (challenges[i].solved == 1)
+      if (*challenges[i].solved == 1)
         solved_state = '+';
       printf ("truth#%u(%c): %s %s ",
               i,
@@ -332,7 +333,7 @@ read_keyboard_command (void *cls)
     {
       // Calculate costs
       struct TALER_Amount *costs; // different cost for different currencies
-      char **currencies;
+      const char **currencies;
       unsigned int costs_len = 0;
 
       for (unsigned int j = 0; j < policies[i].uuids_length; j++)
@@ -340,7 +341,7 @@ read_keyboard_command (void *cls)
         for (unsigned int k = 0; k < challenges_length; k++)
         {
           if (0 == uuid_compare (policies[i].escrow_uuids[j],
-                                 challenges[k].uuid))
+                                 *challenges[k].uuid))
           {
             unsigned int new_currency = 1;
             unsigned int index = 0;
@@ -356,7 +357,7 @@ read_keyboard_command (void *cls)
             if (0 == costs_len)
             {
               costs = GNUNET_new_array (1, struct TALER_Amount);
-              currencies = GNUNET_new_array (1, char *);
+              currencies = GNUNET_new_array (1, const char *);
 
               GNUNET_assert (GNUNET_OK ==
                              TALER_amount_get_zero (challenges[k].currency,

-- 
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]