diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-02-27 01:18:54 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-02-27 01:19:18 +0100 |
commit | 6da407ad72fdca282094ccdb5558ece9638e3bd3 (patch) | |
tree | 9b93ef7431143588be591e97f2bb0409ff4493ef /src/set/set_api.c | |
parent | 3112e64ef06f71b06e9f047f2c6dd1be0941a565 (diff) | |
download | gnunet-6da407ad72fdca282094ccdb5558ece9638e3bd3.tar.gz gnunet-6da407ad72fdca282094ccdb5558ece9638e3bd3.zip |
include set size in result callback, needed by consensus
Diffstat (limited to 'src/set/set_api.c')
-rw-r--r-- | src/set/set_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/set/set_api.c b/src/set/set_api.c index 2b09725e8..0ae02e35a 100644 --- a/src/set/set_api.c +++ b/src/set/set_api.c | |||
@@ -432,6 +432,7 @@ do_final: | |||
432 | { | 432 | { |
433 | oh->result_cb (oh->result_cls, | 433 | oh->result_cb (oh->result_cls, |
434 | NULL, | 434 | NULL, |
435 | GNUNET_ntohll (msg->current_size), | ||
435 | result_status); | 436 | result_status); |
436 | } | 437 | } |
437 | else | 438 | else |
@@ -453,6 +454,7 @@ do_element: | |||
453 | if (NULL != oh->result_cb) | 454 | if (NULL != oh->result_cb) |
454 | oh->result_cb (oh->result_cls, | 455 | oh->result_cb (oh->result_cls, |
455 | &e, | 456 | &e, |
457 | GNUNET_ntohll (msg->current_size), | ||
456 | result_status); | 458 | result_status); |
457 | } | 459 | } |
458 | 460 | ||
@@ -538,6 +540,7 @@ handle_client_set_error (void *cls, | |||
538 | if (NULL != set->ops_head->result_cb) | 540 | if (NULL != set->ops_head->result_cb) |
539 | set->ops_head->result_cb (set->ops_head->result_cls, | 541 | set->ops_head->result_cb (set->ops_head->result_cls, |
540 | NULL, | 542 | NULL, |
543 | 0, | ||
541 | GNUNET_SET_STATUS_FAILURE); | 544 | GNUNET_SET_STATUS_FAILURE); |
542 | set_operation_destroy (set->ops_head); | 545 | set_operation_destroy (set->ops_head); |
543 | } | 546 | } |