small API change: do no longer pass rarely needed GNUNET_SCHEDULER_TaskContext to...
[oweals/gnunet.git] / src / revocation / gnunet-revocation.c
index 86e5c017dab764577d0bf4ac21481790875e95df..f68c18aa4f965dac4b0efc526e24e8cec9504047 100644 (file)
@@ -84,11 +84,9 @@ static unsigned long long matching_bits;
  * Function run if the user aborts with CTRL-C.
  *
  * @param cls closure
- * @param tc scheduler context
  */
 static void
-do_shutdown (void *cls,
-             const struct GNUNET_SCHEDULER_TaskContext *tc)
+do_shutdown (void *cls)
 {
   if (NULL != el)
   {
@@ -231,15 +229,15 @@ perform_revocation (const struct RevocationData *rd)
  * Perform the proof-of-work calculation.
  *
  * @param cls the `struct RevocationData`
- * @param tc scheduler context
  */
 static void
-calculate_pow (void *cls,
-               const struct GNUNET_SCHEDULER_TaskContext *tc)
+calculate_pow (void *cls)
 {
   struct RevocationData *rd = cls;
+  const struct GNUNET_SCHEDULER_TaskContext *tc;
 
   /* store temporary results */
+  tc = GNUNET_SCHEDULER_get_task_context ();
   if ( (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason)) ||
        (0 == (rd->pow % 128) ) )
   {