diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-10 11:26:50 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-10 11:26:50 +0200 |
commit | f3e122bcb96dde2d406a6005013d96e67a045cd3 (patch) | |
tree | e4ebb57817d29458adf9bf6328e8561c38472baa /src/zonemaster/gnunet-service-zonemaster.c | |
parent | 4fe4c850dec0aff53510de7fdd7fce5fa870ae40 (diff) | |
download | gnunet-f3e122bcb96dde2d406a6005013d96e67a045cd3.tar.gz gnunet-f3e122bcb96dde2d406a6005013d96e67a045cd3.zip |
simplify logic
Diffstat (limited to 'src/zonemaster/gnunet-service-zonemaster.c')
-rw-r--r-- | src/zonemaster/gnunet-service-zonemaster.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/zonemaster/gnunet-service-zonemaster.c b/src/zonemaster/gnunet-service-zonemaster.c index 482d3a203..719a84107 100644 --- a/src/zonemaster/gnunet-service-zonemaster.c +++ b/src/zonemaster/gnunet-service-zonemaster.c | |||
@@ -578,8 +578,7 @@ convert_records_for_export (const struct GNUNET_GNSRECORD_Data *rd, | |||
578 | * @param label label to store under | 578 | * @param label label to store under |
579 | * @param rd_public public record data | 579 | * @param rd_public public record data |
580 | * @param rd_public_count number of records in @a rd_public | 580 | * @param rd_public_count number of records in @a rd_public |
581 | * @param cont function to call with PUT result | 581 | * @param ma handle for the put operation |
582 | * @param cont_cls closure for @a cont | ||
583 | * @return DHT PUT handle, NULL on error | 582 | * @return DHT PUT handle, NULL on error |
584 | */ | 583 | */ |
585 | static struct GNUNET_DHT_PutHandle * | 584 | static struct GNUNET_DHT_PutHandle * |
@@ -587,8 +586,7 @@ perform_dht_put (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key, | |||
587 | const char *label, | 586 | const char *label, |
588 | const struct GNUNET_GNSRECORD_Data *rd_public, | 587 | const struct GNUNET_GNSRECORD_Data *rd_public, |
589 | unsigned int rd_public_count, | 588 | unsigned int rd_public_count, |
590 | GNUNET_SCHEDULER_TaskCallback cont, | 589 | struct DhtPutActivity *ma) |
591 | void *cont_cls) | ||
592 | { | 590 | { |
593 | struct GNUNET_GNSRECORD_Block *block; | 591 | struct GNUNET_GNSRECORD_Block *block; |
594 | struct GNUNET_HashCode query; | 592 | struct GNUNET_HashCode query; |
@@ -640,8 +638,8 @@ perform_dht_put (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key, | |||
640 | block_size, | 638 | block_size, |
641 | block, | 639 | block, |
642 | expire, | 640 | expire, |
643 | cont, | 641 | &dht_put_continuation, |
644 | cont_cls); | 642 | ma); |
645 | GNUNET_free (block); | 643 | GNUNET_free (block); |
646 | return ret; | 644 | return ret; |
647 | } | 645 | } |
@@ -759,7 +757,6 @@ put_gns_record (void *cls, | |||
759 | label, | 757 | label, |
760 | rd_public, | 758 | rd_public, |
761 | rd_public_count, | 759 | rd_public_count, |
762 | &dht_put_continuation, | ||
763 | ma); | 760 | ma); |
764 | put_cnt++; | 761 | put_cnt++; |
765 | if (0 == put_cnt % DELTA_INTERVAL) | 762 | if (0 == put_cnt % DELTA_INTERVAL) |