diff options
-rw-r--r-- | brandt.c | 10 | ||||
-rw-r--r-- | brandt.h | 4 |
2 files changed, 7 insertions, 7 deletions
@@ -51,8 +51,8 @@ BRANDT_init (struct GNUNET_CRYPTO_EccDlogContext *dlogctx) | |||
51 | 51 | ||
52 | 52 | ||
53 | void | 53 | void |
54 | BRANDT_start (struct BRANDT_Auction *auction, | 54 | BRANDT_bidder_start (struct BRANDT_Auction *auction, |
55 | uint16_t n) | 55 | uint16_t n) |
56 | { | 56 | { |
57 | GNUNET_assert (n > 0); | 57 | GNUNET_assert (n > 0); |
58 | auction->n = n; | 58 | auction->n = n; |
@@ -61,7 +61,7 @@ BRANDT_start (struct BRANDT_Auction *auction, | |||
61 | 61 | ||
62 | 62 | ||
63 | static void | 63 | static void |
64 | start_auction (void *arg) | 64 | seller_start (void *arg) |
65 | { | 65 | { |
66 | struct BRANDT_Auction *ad = (struct BRANDT_Auction *)arg; | 66 | struct BRANDT_Auction *ad = (struct BRANDT_Auction *)arg; |
67 | 67 | ||
@@ -127,7 +127,7 @@ BRANDT_new (BRANDT_CbResult result, | |||
127 | 127 | ||
128 | until_start = GNUNET_TIME_absolute_get_remaining (time_start); | 128 | until_start = GNUNET_TIME_absolute_get_remaining (time_start); |
129 | ret->task = GNUNET_SCHEDULER_add_delayed (until_start, | 129 | ret->task = GNUNET_SCHEDULER_add_delayed (until_start, |
130 | &start_auction, | 130 | &seller_start, |
131 | ret); | 131 | ret); |
132 | 132 | ||
133 | *auction_desc_len = sizeof (struct BRANDT_DescrP); | 133 | *auction_desc_len = sizeof (struct BRANDT_DescrP); |
@@ -273,7 +273,7 @@ advance_round (struct BRANDT_Auction *ad, | |||
273 | gcry_mpi_clear_highbit (ad->round_progress, 0); | 273 | gcry_mpi_clear_highbit (ad->round_progress, 0); |
274 | if (msg_last == ++(ad->cur_round)) | 274 | if (msg_last == ++(ad->cur_round)) |
275 | { | 275 | { |
276 | /** \todo: finish */ | 276 | /** \todo: unify …_determine_outcome function signature and call here */ |
277 | } | 277 | } |
278 | 278 | ||
279 | if (!handler_out[atype][outcome][ad->cur_round] || | 279 | if (!handler_out[atype][outcome][ad->cur_round] || |
@@ -222,8 +222,8 @@ BRANDT_new (BRANDT_CbResult result, | |||
222 | * @param[in] n The amount of bidders (from the start announcement message). | 222 | * @param[in] n The amount of bidders (from the start announcement message). |
223 | */ | 223 | */ |
224 | void | 224 | void |
225 | BRANDT_start (struct BRANDT_Auction *auction, | 225 | BRANDT_bidder_start (struct BRANDT_Auction *auction, |
226 | uint16_t n); | 226 | uint16_t n); |
227 | 227 | ||
228 | 228 | ||
229 | /** | 229 | /** |