diff --git a/brandt.c b/brandt.c index 571d5b8..a376242 100644 --- a/brandt.c +++ b/brandt.c @@ -51,8 +51,8 @@ BRANDT_init (struct GNUNET_CRYPTO_EccDlogContext *dlogctx) void -BRANDT_start (struct BRANDT_Auction *auction, - uint16_t n) +BRANDT_bidder_start (struct BRANDT_Auction *auction, + uint16_t n) { GNUNET_assert (n > 0); auction->n = n; @@ -61,7 +61,7 @@ BRANDT_start (struct BRANDT_Auction *auction, static void -start_auction (void *arg) +seller_start (void *arg) { struct BRANDT_Auction *ad = (struct BRANDT_Auction *)arg; @@ -127,7 +127,7 @@ BRANDT_new (BRANDT_CbResult result, until_start = GNUNET_TIME_absolute_get_remaining (time_start); ret->task = GNUNET_SCHEDULER_add_delayed (until_start, - &start_auction, + &seller_start, ret); *auction_desc_len = sizeof (struct BRANDT_DescrP); @@ -273,7 +273,7 @@ advance_round (struct BRANDT_Auction *ad, gcry_mpi_clear_highbit (ad->round_progress, 0); if (msg_last == ++(ad->cur_round)) { - /** \todo: finish */ + /** \todo: unify …_determine_outcome function signature and call here */ } if (!handler_out[atype][outcome][ad->cur_round] || diff --git a/brandt.h b/brandt.h index 9487e06..569db11 100644 --- a/brandt.h +++ b/brandt.h @@ -222,8 +222,8 @@ BRANDT_new (BRANDT_CbResult result, * @param[in] n The amount of bidders (from the start announcement message). */ void -BRANDT_start (struct BRANDT_Auction *auction, - uint16_t n); +BRANDT_bidder_start (struct BRANDT_Auction *auction, + uint16_t n); /**