gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] 131/164: Fixed all warnings/notices for gcc and clang


From: gnunet
Subject: [gnunet] 131/164: Fixed all warnings/notices for gcc and clang
Date: Fri, 30 Jul 2021 15:33:17 +0200

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

grothoff pushed a commit to branch master
in repository gnunet.

commit efcf5ccb10cdad8fd4939c3e68873963abe4b2ef
Author: Elias Summermatter <elias.summermatter@seccom.ch>
AuthorDate: Thu Jun 3 18:26:48 2021 +0200

    Fixed all warnings/notices for gcc and clang
---
 src/setu/gnunet-service-setu.c |  8 ++++----
 src/setu/ibf.c                 | 12 +++++++-----
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c
index f7e08f859..c9f17d934 100644
--- a/src/setu/gnunet-service-setu.c
+++ b/src/setu/gnunet-service-setu.c
@@ -3572,7 +3572,7 @@ send_missing_full_elements_iter (void *cls,
  */
 static int
 check_union_p2p_request_full (void *cls,
-                              const struct GNUNET_MessageHeader *mh)
+                              const struct TransmitFullMessage *mh)
 {
     return GNUNET_OK;
 }
@@ -3893,7 +3893,7 @@ handle_union_p2p_demand (void *cls,
         if (op->symmetric)
             send_client_element (op,
                                  &ee->element,
-                                 GNUNET_SET_STATUS_ADD_REMOTE);
+                                 GNUNET_SETU_STATUS_ADD_REMOTE);
     }
     GNUNET_CADET_receive_done (op->channel);
     maybe_finish (op);
@@ -4621,7 +4621,7 @@ handle_client_listen (void *cls,
                                      NULL),
             GNUNET_MQ_hd_var_size (union_p2p_request_full,
                                    GNUNET_MESSAGE_TYPE_SETU_P2P_REQUEST_FULL,
-                                   struct GNUNET_MessageHeader,
+                                   struct TransmitFullMessage,
                                    NULL),
             GNUNET_MQ_hd_var_size (union_p2p_strata_estimator,
                                    GNUNET_MESSAGE_TYPE_SETU_P2P_SE,
@@ -4874,7 +4874,7 @@ handle_client_evaluate (void *cls,
                                      op),
             GNUNET_MQ_hd_var_size (union_p2p_request_full,
                                    GNUNET_MESSAGE_TYPE_SETU_P2P_REQUEST_FULL,
-                                   struct GNUNET_MessageHeader,
+                                   struct TransmitFullMessage,
                                    op),
             GNUNET_MQ_hd_var_size (union_p2p_strata_estimator,
                                    GNUNET_MESSAGE_TYPE_SETU_P2P_SE,
diff --git a/src/setu/ibf.c b/src/setu/ibf.c
index 3a3ecb77b..17577c588 100644
--- a/src/setu/ibf.c
+++ b/src/setu/ibf.c
@@ -332,7 +332,6 @@ ibf_write_slice (const struct InvertibleBloomFilter *ibf,
 {
   struct IBF_Key *key_dst;
   struct IBF_KeyHash *key_hash_dst;
-  struct IBF_Count *count_dst;
 
   GNUNET_assert (start + count <= ibf->size);
 
@@ -340,18 +339,21 @@ ibf_write_slice (const struct InvertibleBloomFilter *ibf,
   key_dst = (struct IBF_Key *) buf;
   GNUNET_memcpy (key_dst,
                  ibf->key_sum + start,
-                 count * sizeof *key_dst);
+                 count * sizeof(*key_dst));
   key_dst += count;
   /* copy key hashes */
   key_hash_dst = (struct IBF_KeyHash *) key_dst;
   GNUNET_memcpy (key_hash_dst,
                  ibf->key_hash_sum + start,
-                 count * sizeof *key_hash_dst);
+                 count * sizeof(*key_hash_dst));
   key_hash_dst += count;
 
   /* pack and copy counter */
-  count_dst = (uint8_t *) key_hash_dst;
-  pack_counter (ibf,start,count,(uint8_t *)count_dst,counter_max_length);
+  pack_counter (ibf,
+                start,
+                count,
+                (uint8_t *) key_hash_dst,
+                counter_max_length);
 
 
 }

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