diff options
Diffstat (limited to 'src/revocation/gnunet-revocation.c')
-rw-r--r-- | src/revocation/gnunet-revocation.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/revocation/gnunet-revocation.c b/src/revocation/gnunet-revocation.c index 86e5c017d..f68c18aa4 100644 --- a/src/revocation/gnunet-revocation.c +++ b/src/revocation/gnunet-revocation.c | |||
@@ -84,11 +84,9 @@ static unsigned long long matching_bits; | |||
84 | * Function run if the user aborts with CTRL-C. | 84 | * Function run if the user aborts with CTRL-C. |
85 | * | 85 | * |
86 | * @param cls closure | 86 | * @param cls closure |
87 | * @param tc scheduler context | ||
88 | */ | 87 | */ |
89 | static void | 88 | static void |
90 | do_shutdown (void *cls, | 89 | do_shutdown (void *cls) |
91 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
92 | { | 90 | { |
93 | if (NULL != el) | 91 | if (NULL != el) |
94 | { | 92 | { |
@@ -231,15 +229,15 @@ perform_revocation (const struct RevocationData *rd) | |||
231 | * Perform the proof-of-work calculation. | 229 | * Perform the proof-of-work calculation. |
232 | * | 230 | * |
233 | * @param cls the `struct RevocationData` | 231 | * @param cls the `struct RevocationData` |
234 | * @param tc scheduler context | ||
235 | */ | 232 | */ |
236 | static void | 233 | static void |
237 | calculate_pow (void *cls, | 234 | calculate_pow (void *cls) |
238 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
239 | { | 235 | { |
240 | struct RevocationData *rd = cls; | 236 | struct RevocationData *rd = cls; |
237 | const struct GNUNET_SCHEDULER_TaskContext *tc; | ||
241 | 238 | ||
242 | /* store temporary results */ | 239 | /* store temporary results */ |
240 | tc = GNUNET_SCHEDULER_get_task_context (); | ||
243 | if ( (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason)) || | 241 | if ( (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason)) || |
244 | (0 == (rd->pow % 128) ) ) | 242 | (0 == (rd->pow % 128) ) ) |
245 | { | 243 | { |