gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] 05/12: fixed compiling warnings


From: gnunet
Subject: [taler-anastasis] 05/12: fixed compiling warnings
Date: Mon, 20 Apr 2020 09:46:00 +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 1351ceb9f3744ad181bf6a2f1c3efb2f740261e9
Author: Dennis Neufeld <address@hidden>
AuthorDate: Sat Apr 18 14:58:37 2020 +0000

    fixed compiling warnings
---
 src/include/anastasis_service.h           |  2 +-
 src/include/anastasis_testing_lib.h       |  8 ++++----
 src/lib/anastasis_api_keyshare_lookup.c   |  2 +-
 src/lib/testing_api_cmd_keyshare_lookup.c | 28 ++++++++++++++--------------
 src/lib/testing_api_cmd_truth_store.c     |  2 +-
 5 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/src/include/anastasis_service.h b/src/include/anastasis_service.h
index 3e5cc34..f74ab5b 100644
--- a/src/include/anastasis_service.h
+++ b/src/include/anastasis_service.h
@@ -471,7 +471,7 @@ typedef void
 struct ANASTASIS_KeyShareLookupOperation *
 ANASTASIS_keyshare_lookup (struct GNUNET_CURL_Context *ctx,
                            const char *backend_url,
-                           uuid_t *truth_uuid,
+                           const uuid_t *truth_uuid,
                            const struct ANASTASIS_CRYPTO_TruthKey *truth_key,
                            const struct GNUNET_HashCode *hashed_answer,
                            ANASTASIS_KeyShareLookupCallback cb,
diff --git a/src/include/anastasis_testing_lib.h 
b/src/include/anastasis_testing_lib.h
index a06b33f..bf8f863 100644
--- a/src/include/anastasis_testing_lib.h
+++ b/src/include/anastasis_testing_lib.h
@@ -347,8 +347,8 @@ enum ANASTASIS_TESTING_TruthStoreOption
  * @param size_answer size of the answer
  * @return hash of the answer
  */
-struct GNUNET_HashCode *
-ANASTASIS_TESTING_make_hashed_answer (void *answer,
+struct GNUNET_HashCode
+ANASTASIS_TESTING_make_hashed_answer (const void *answer,
                                       size_t size_answer);
 
 /**
@@ -363,7 +363,7 @@ ANASTASIS_TESTING_make_hashed_answer (void *answer,
 json_t*
 ANASTASIS_TESTING_make_truth_example (const char *method,
                                       const char *mime_type,
-                                      const struct GNUNET_HashCode *answer,
+                                      const struct GNUNET_HashCode answer,
                                       const struct
                                       ANASTASIS_CRYPTO_TruthKey *key);
 
@@ -401,7 +401,7 @@ struct TALER_TESTING_Command
 ANASTASIS_TESTING_cmd_keyshare_lookup (const char *label,
                                        const char *anastasis_url,
                                        unsigned int http_status,
-                                       const struct GNUNET_HashCode *answer,
+                                       const struct GNUNET_HashCode answer,
                                        const struct
                                        ANASTASIS_CRYPTO_TruthKey *key,
                                        const char *upload_ref);
diff --git a/src/lib/anastasis_api_keyshare_lookup.c 
b/src/lib/anastasis_api_keyshare_lookup.c
index 54bb25c..609c6b4 100644
--- a/src/lib/anastasis_api_keyshare_lookup.c
+++ b/src/lib/anastasis_api_keyshare_lookup.c
@@ -241,7 +241,7 @@ handle_header (char *buffer,
 struct ANASTASIS_KeyShareLookupOperation *
 ANASTASIS_keyshare_lookup (struct GNUNET_CURL_Context *ctx,
                            const char *backend_url,
-                           uuid_t *truth_uuid,
+                           const uuid_t *truth_uuid,
                            const struct ANASTASIS_CRYPTO_TruthKey *truth_key,
                            const struct GNUNET_HashCode *hashed_answer,
                            ANASTASIS_KeyShareLookupCallback cb,
diff --git a/src/lib/testing_api_cmd_keyshare_lookup.c 
b/src/lib/testing_api_cmd_keyshare_lookup.c
index f7b8c89..89499a5 100644
--- a/src/lib/testing_api_cmd_keyshare_lookup.c
+++ b/src/lib/testing_api_cmd_keyshare_lookup.c
@@ -30,7 +30,7 @@
 /**
  * State for a "keyshare lookup" CMD.
  */
-struct KeyshareLookupState
+struct KeyShareLookupState
 {
   /**
    * The interpreter state.
@@ -50,7 +50,7 @@ struct KeyshareLookupState
   /**
    * The /truth GET operation handle.
    */
-  struct ANASTASIS_KeyshareLookupOperation *kslo;
+  struct ANASTASIS_KeyShareLookupOperation *kslo;
 
   /**
    * Hashed answer to a challenge
@@ -83,9 +83,9 @@ struct KeyshareLookupState
 static void
 keyshare_lookup_cb (void *cls,
                     unsigned int http_status,
-                    const struct ANASTASIS_DownloadDetails *dd)
+                    const struct ANASTASIS_KeyShareDownloadDetails *dd)
 {
-  struct KeyshareLookupState *ksls = cls;
+  struct KeyShareLookupState *ksls = cls;
 
   ksls->kslo = NULL;
   if (http_status != ksls->http_status)
@@ -115,7 +115,7 @@ keyshare_lookup_run (void *cls,
                      const struct TALER_TESTING_Command *cmd,
                      struct TALER_TESTING_Interpreter *is)
 {
-  struct KeyshareLookupState *ksls = cls;
+  struct KeyShareLookupState *ksls = cls;
 
   ksls->is = is;
   if (NULL != ksls->upload_reference)
@@ -168,7 +168,7 @@ static void
 keyshare_lookup_cleanup (void *cls,
                          const struct TALER_TESTING_Command *cmd)
 {
-  struct KeyshareLookupState *ksls = cls;
+  struct KeyShareLookupState *ksls = cls;
 
   if (NULL != ksls->kslo)
   {
@@ -189,14 +189,14 @@ keyshare_lookup_cleanup (void *cls,
  * @param size_answer size of the answer
  * @return hash of the answer
  */
-struct GNUNET_HashCode *
-ANASTASIS_TESTING_make_hashed_answer (void *answer,
+struct GNUNET_HashCode
+ANASTASIS_TESTING_make_hashed_answer (const void *answer,
                                       size_t size_answer)
 {
-  struct GNUNET_HashCode *hashed_answer;
+  struct GNUNET_HashCode hashed_answer;
   GNUNET_CRYPTO_hash (answer,
                       size_answer,
-                      hashed_answer);
+                      &hashed_answer);
   return hashed_answer;
 }
 
@@ -217,19 +217,19 @@ struct TALER_TESTING_Command
 ANASTASIS_TESTING_cmd_keyshare_lookup (const char *label,
                                        const char *anastasis_url,
                                        unsigned int http_status,
-                                       const struct GNUNET_HashCode *answer,
+                                       const struct GNUNET_HashCode answer,
                                        const struct
                                        ANASTASIS_CRYPTO_TruthKey *key,
                                        const char *upload_ref)
 {
-  struct KeyshareLookupState *ksls;
+  struct KeyShareLookupState *ksls;
 
   GNUNET_assert (NULL != upload_ref);
-  ksls = GNUNET_new (struct KeyshareLookupState);
+  ksls = GNUNET_new (struct KeyShareLookupState);
   ksls->http_status = http_status;
   ksls->anastasis_url = anastasis_url;
   ksls->upload_reference = upload_ref;
-  ksls->hashed_answer = answer;
+  ksls->hashed_answer = &answer;
   ksls->truth_key = key;
   {
     struct TALER_TESTING_Command cmd = {
diff --git a/src/lib/testing_api_cmd_truth_store.c 
b/src/lib/testing_api_cmd_truth_store.c
index 0f16278..00303f6 100644
--- a/src/lib/testing_api_cmd_truth_store.c
+++ b/src/lib/testing_api_cmd_truth_store.c
@@ -344,7 +344,7 @@ truth_store_traits (void *cls,
 json_t*
 ANASTASIS_TESTING_make_truth_example (const char *method,
                                       const char *mime_type,
-                                      const struct GNUNET_HashCode *answer,
+                                      const struct GNUNET_HashCode answer,
                                       const struct
                                       ANASTASIS_CRYPTO_TruthKey *key)
 {

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



reply via email to

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