diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-08-31 14:46:29 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-08-31 14:46:29 +0200 |
commit | 7b84ab7fe10b0ccf6c5e93bebf06267e18a09bf8 (patch) | |
tree | 78b297dee18409439ebb334e5535791d9906b5a7 /brandt.c | |
parent | 9f0e72f1e8615c9c03222372b2c579471bcce602 (diff) | |
download | libbrandt-7b84ab7fe10b0ccf6c5e93bebf06267e18a09bf8.tar.gz libbrandt-7b84ab7fe10b0ccf6c5e93bebf06267e18a09bf8.zip |
fix seller auction bootstrap
Diffstat (limited to 'brandt.c')
-rw-r--r-- | brandt.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -88,6 +88,8 @@ static void | |||
88 | seller_start (void *arg) | 88 | seller_start (void *arg) |
89 | { | 89 | { |
90 | struct BRANDT_Auction *ad = (struct BRANDT_Auction *)arg; | 90 | struct BRANDT_Auction *ad = (struct BRANDT_Auction *)arg; |
91 | enum auction_type atype; | ||
92 | enum outcome_type outcome; | ||
91 | 93 | ||
92 | ad->task = NULL; | 94 | ad->task = NULL; |
93 | 95 | ||
@@ -97,6 +99,12 @@ seller_start (void *arg) | |||
97 | /** todo: somehow mark auction as done / ready for cleanup */ | 99 | /** todo: somehow mark auction as done / ready for cleanup */ |
98 | return; | 100 | return; |
99 | } | 101 | } |
102 | |||
103 | atype = ad->m > 0 ? auction_mPlusFirstPrice : auction_firstPrice; | ||
104 | outcome = ad->outcome_public ? outcome_public : outcome_private; | ||
105 | |||
106 | if (handler_prep[atype][outcome][msg_init]) | ||
107 | handler_prep[atype][outcome][msg_init] (ad); | ||
100 | } | 108 | } |
101 | 109 | ||
102 | 110 | ||