aboutsummaryrefslogtreecommitdiff
path: root/src/dht
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-05 23:16:33 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-05 23:16:33 +0200
commitb8344df8991db22ea015c274ac2689a3a311c037 (patch)
tree4a0bdc55e8e2c712f94b01d620e92fa947654a09 /src/dht
parent5f627ce1a78f662d928fa6c73a90342d8bff5cf3 (diff)
downloadgnunet-b8344df8991db22ea015c274ac2689a3a311c037.tar.gz
gnunet-b8344df8991db22ea015c274ac2689a3a311c037.zip
fix profiler build, signature of callback changed
Diffstat (limited to 'src/dht')
-rw-r--r--src/dht/gnunet_dht_profiler.c18
1 files 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)
640 * Queue up a delayed task for doing DHT GET 640 * Queue up a delayed task for doing DHT GET
641 * 641 *
642 * @param cls the active context 642 * @param cls the active context
643 * @param success #GNUNET_OK if the PUT was transmitted,
644 * #GNUNET_NO on timeout,
645 * #GNUNET_SYSERR on disconnect from service
646 * after the PUT message was transmitted
647 * (so we don't know if it was received or not)
648 */ 643 */
649static void 644static void
650put_cont (void *cls, int success) 645put_cont (void *cls)
651{ 646{
652 struct ActiveContext *ac = cls; 647 struct ActiveContext *ac = cls;
653 struct Context *ctx = ac->ctx; 648 struct Context *ctx = ac->ctx;
654 649
655 ac->dht_put = NULL; 650 ac->dht_put = NULL;
656 if (success) 651 n_puts_ok++;
657 n_puts_ok++;
658 else
659 n_puts_fail++;
660 GNUNET_assert (NULL != ctx); 652 GNUNET_assert (NULL != ctx);
661 (void) GNUNET_SCHEDULER_add_now (&teardown_dht_connection, ctx); 653 (void) GNUNET_SCHEDULER_add_now (&teardown_dht_connection,
654 ctx);
662} 655}
663 656
664 657
@@ -691,7 +684,8 @@ delayed_put (void *cls)
691 ac->put_data_size, 684 ac->put_data_size,
692 ac->put_data, 685 ac->put_data,
693 GNUNET_TIME_UNIT_FOREVER_ABS, /* expiration time */ 686 GNUNET_TIME_UNIT_FOREVER_ABS, /* expiration time */
694 &put_cont, ac); /* continuation and its closure */ 687 &put_cont,
688 ac); /* continuation and its closure */
695 n_puts++; 689 n_puts++;
696} 690}
697 691