gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] 01/03: fix profiler build, signature of callback c


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 01/03: fix profiler build, signature of callback changed
Date: Sat, 05 May 2018 23:52:55 +0200

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

grothoff pushed a commit to branch master
in repository gnunet.

commit b8344df8991db22ea015c274ac2689a3a311c037
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat May 5 23:16:33 2018 +0200

    fix profiler build, signature of callback changed
---
 src/dht/gnunet_dht_profiler.c | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/src/dht/gnunet_dht_profiler.c b/src/dht/gnunet_dht_profiler.c
index a8807bea8..48377911b 100644
--- a/src/dht/gnunet_dht_profiler.c
+++ b/src/dht/gnunet_dht_profiler.c
@@ -640,25 +640,18 @@ teardown_dht_connection (void *cls)
  * Queue up a delayed task for doing DHT GET
  *
  * @param cls the active context
- * @param success #GNUNET_OK if the PUT was transmitted,
- *                #GNUNET_NO on timeout,
- *                #GNUNET_SYSERR on disconnect from service
- *                after the PUT message was transmitted
- *                (so we don't know if it was received or not)
  */
 static void
-put_cont (void *cls, int success)
+put_cont (void *cls)
 {
   struct ActiveContext *ac = cls;
   struct Context *ctx = ac->ctx;
 
   ac->dht_put = NULL;
-  if (success)
-    n_puts_ok++;
-  else
-    n_puts_fail++;
+  n_puts_ok++;
   GNUNET_assert (NULL != ctx);
-  (void) GNUNET_SCHEDULER_add_now (&teardown_dht_connection, ctx);
+  (void) GNUNET_SCHEDULER_add_now (&teardown_dht_connection,
+                                   ctx);
 }
 
 
@@ -691,7 +684,8 @@ delayed_put (void *cls)
                                 ac->put_data_size,
                                 ac->put_data,
                                 GNUNET_TIME_UNIT_FOREVER_ABS, /* expiration 
time */
-                                &put_cont, ac);                /* continuation 
and its closure */
+                                &put_cont,
+                                ac);                /* continuation and its 
closure */
   n_puts++;
 }
 

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



reply via email to

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