aboutsummaryrefslogtreecommitdiff
path: root/src/service/dht/gnunet-service-dht.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/service/dht/gnunet-service-dht.c')
-rw-r--r--src/service/dht/gnunet-service-dht.c11
1 files 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 @@
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 * @author Nathan Evans 25 * @author Nathan Evans
26 */ 26 */
27#include "gnunet_common.h"
27#include "platform.h" 28#include "platform.h"
28#include "gnunet_block_lib.h" 29#include "gnunet_block_lib.h"
29#include "gnunet_util_lib.h" 30#include "gnunet_util_lib.h"
@@ -264,14 +265,14 @@ u_address_add (void *cls,
264{ 265{
265 struct GDS_Underlay *u = cls; 266 struct GDS_Underlay *u = cls;
266 struct MyAddress *a; 267 struct MyAddress *a;
267 unsigned int add_success; 268 enum GNUNET_GenericReturnValue add_success;
268 269
269 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 270 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
270 "Underlay adds address %s for this peer\n", 271 "Underlay adds address %s for this peer\n",
271 address); 272 address);
272 add_success != GNUNET_HELLO_builder_add_address (GDS_my_hello, 273 if (GNUNET_OK != (add_success = GNUNET_HELLO_builder_add_address (
273 address); 274 GDS_my_hello,
274 if (GNUNET_OK != add_success) 275 address)))
275 { 276 {
276 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 277 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
277 "Adding address `%s' from underlay %s\n", 278 "Adding address `%s' from underlay %s\n",
@@ -287,7 +288,7 @@ u_address_add (void *cls,
287 a_tail, 288 a_tail,
288 a); 289 a);
289 *ctx = a; 290 *ctx = a;
290 291
291 if (NULL != hello_task) 292 if (NULL != hello_task)
292 GNUNET_SCHEDULER_cancel (hello_task); 293 GNUNET_SCHEDULER_cancel (hello_task);
293 hello_task = GNUNET_SCHEDULER_add_now (&broadcast_hello, 294 hello_task = GNUNET_SCHEDULER_add_now (&broadcast_hello,