gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: DHT: Fix warning and incorrect/missing v


From: gnunet
Subject: [gnunet] branch master updated: DHT: Fix warning and incorrect/missing variable assignment
Date: Thu, 09 Nov 2023 10:35:12 +0100

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

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 367265e42 DHT: Fix warning and incorrect/missing variable assignment
367265e42 is described below

commit 367265e42f2cb84b944967434d0ef2a27daae1e3
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Thu Nov 9 10:34:48 2023 +0100

    DHT: Fix warning and incorrect/missing variable assignment
---
 src/service/dht/gnunet-service-dht.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/service/dht/gnunet-service-dht.c 
b/src/service/dht/gnunet-service-dht.c
index 6250f60d4..0689af9aa 100644
--- a/src/service/dht/gnunet-service-dht.c
+++ b/src/service/dht/gnunet-service-dht.c
@@ -24,6 +24,7 @@
  * @author Christian Grothoff
  * @author Nathan Evans
  */
+#include "gnunet_common.h"
 #include "platform.h"
 #include "gnunet_block_lib.h"
 #include "gnunet_util_lib.h"
@@ -264,14 +265,14 @@ u_address_add (void *cls,
 {
   struct GDS_Underlay *u = cls;
   struct MyAddress *a;
-  unsigned int add_success;
+  enum GNUNET_GenericReturnValue add_success;
 
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
               "Underlay adds address %s for this peer\n",
               address);
-  add_success != GNUNET_HELLO_builder_add_address (GDS_my_hello,
-                                                   address);
-  if (GNUNET_OK != add_success)
+  if (GNUNET_OK != (add_success = GNUNET_HELLO_builder_add_address (
+                      GDS_my_hello,
+                      address)))
   {
     GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                 "Adding address `%s' from underlay %s\n",
@@ -287,7 +288,7 @@ u_address_add (void *cls,
                                a_tail,
                                a);
   *ctx = a;
-  
+
   if (NULL != hello_task)
     GNUNET_SCHEDULER_cancel (hello_task);
   hello_task = GNUNET_SCHEDULER_add_now (&broadcast_hello,

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