From b8344df8991db22ea015c274ac2689a3a311c037 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 5 May 2018 23:16:33 +0200 Subject: [PATCH] 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++; } -- 2.25.1